You need to implement a Python function called count_gifts_by_fairy that counts the occurrences of specific gifts in a given sentence based on the type of fairy. The function will utilize the Python collections.Counter class to efficiently tally character counts in the input string.
Functionality:
The function accepts a sentence (string) and a fairy type (string) as inputs.
Depending on the fairy type provided ('good' or 'evil'), the function should count occurrences of the associated gifts:
For 'good': Count the occurrences of the gifts 'ruby' and 'crystal'.
For 'evil': Count the occurrences of the gifts 'python' and 'squirrel'.
The count should consider both lowercase and uppercase variations of the gift names, where uppercase counts double.
Input/Output Requirements:
Input:
sentence (string): A sentence containing various words.
fairy (string): A string that is either 'good' or 'evil', which determines the type of gifts to count.
Output:
The function should return a dictionary where:
The keys are the gift names.
The values are the total counts of each gift based on the rules specified above.