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