input: Write a python function to find possible anagrams from a list of words.
  assert possible_anagrams(['cat', 'tac', 'dog', 'god']) == {'cat', 'tac', 'dog', 'god'}
  assert possible_anagrams(['listen', 'silent', 'enlist', 'google']) == {'listen', 'silent', 'enlist'}
  assert possible_anagrams(['apple', 'papel', 'banana']) == {'apple', 'papel'}
output: def possible_anagrams(words):
      from collections import defaultdict
      
      anagram_groups = defaultdict(list)
      
      for word in words:
          sorted_word = ''.join(sorted(word))
          anagram_groups[sorted_word].append(word)
          
      result = set()
      for group in anagram_groups.values():
          if len(group) > 1:
              result.update(group)
      
      return result