Write a Python program that can generate all permutations of a given list.
list_a = [1, 2, 3]
def generate_permutations(list_a):
  import itertools 
  return list(itertools.permutations(list_a))
  
generate_permutations(list_a)