input: Write a python function to generate a random password of length 10 using ascii letters, digits, and punctuation.
  assert len(generate_password()) == 10
  assert isinstance(generate_password(), str)
output: import string
  import random
  
  def generate_password():
      characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(characters) for _ in range(10))
      return password