input: Write a python function to generate all permutations of a list using the itertools module.
  assert permute([1, 2, 3]) == [(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]
  assert permute(['a', 'b']) == [('a', 'b'), ('b', 'a')]
  assert permute([1]) == [(1,)]
output: def permute(lst):
      from itertools import permutations
      return list(permutations(lst))