input: 
  def generate_password() -> str:
      """ Generate a random password consisting of 8 characters from the set of
      ASCII letters and digits.
      >>> generate_password()
      'aB3dEfGh'
      >>> generate_password()
      '1234ABcD'
      """
      import string
      import random
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(8))
  
  password = generate_password()
  print(password)
  
output:     import string
      import random
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(8))