input: Write a python function to generate all permutations of a list of words.
  assert permutations(['cat', 'dog', 'bird']) == [['cat', 'dog', 'bird'], ['cat', 'bird', 'dog'], ['dog', 'cat', 'bird'], ['dog', 'bird', 'cat'], ['bird', 'cat', 'dog'], ['bird', 'dog', 'cat']]
  assert permutations(['apple', 'banana']) == [['apple', 'banana'], ['banana', 'apple']]
  assert permutations(['x']) == [['x']]
output: from itertools import permutations as it_permutations
  
  def permutations(words):
      return [list(p) for p in it_permutations(words)]