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