input: def generate_password() -> str:
      """ Generate a random password that consists of 8 characters.
      >>> password = generate_password()
      >>> len(password) == 8
      True
      """
output:     import random
      import string
      
      characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(characters) for _ in range(8))
      return password