input: Write a function to generate a random password given a set of letters, numbers, and characters. The function should return the generated password as a string.
  assert generate_password()== "aBc12@3"
  assert generate_password()== "4De!f5G"
  assert generate_password()== "6H@#7Ij"
  assert generate_password()== "K8$%L9m"
  assert generate_password()== "N^&*(Op"
output: import random
  import string
  
  def generate_password():
      chars = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(chars) for _ in range(7))