input: Write a python function to find all anagrams in a list of words.
  assert find_anagrams(["bat", "cats", "tab", "dog", "act"]) == {'abt': ['bat', 'tab'], 'act': ['cats', 'act']}
  assert find_anagrams(["listen", "silent", "enlist", "google", "gooegl"]) == {'eilnst': ['listen', 'silent', 'enlist'], 'eggloo': ['google', 'gooegl']}
  assert find_anagrams(["hello", "world", "dlorw", "ohlle", "loleh"]) == {'ehllo': ['hello', 'ohlle', 'loleh'], 'dlorw': ['world', 'dlorw']}
output: def find_anagrams(words):
      anagrams = {}
      for word in words:
          sorted_word = ''.join(sorted(word))
          if sorted_word in anagrams:
              anagrams[sorted_word].append(word)
          else:
              anagrams[sorted_word] = [word]
      return anagrams