input: Write a function to create all anagrams of a given word.
  assert set(create_anagrams("abc")) == {"abc", "acb", "bac", "bca", "cab", "cba"}
  assert set(create_anagrams("ab")) == {"ab", "ba"}
  assert set(create_anagrams("a")) == {"a"}
output: def create_anagrams(word):
      from itertools import permutations
      return [''.join(p) for p in permutations(word)]