input: Write a function to generate a random password using a set of letters, numbers, and special characters.
  assert generate_password()=="8Az@b3$R"
  assert generate_password()=="d4E!9Fg5"
  assert generate_password()=="7Qm*2nKp"
  assert generate_password()=="#aL6BzT1"
  assert generate_password()=="&XyZ0w$q"
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(characters) for _ in range(8))