input: def generate_random_password() -> str:
      """Generate a random password of 8 characters, which includes letters (both uppercase and lowercase) and digits.
      >>> password = generate_random_password()
      >>> len(password)
      8
      >>> any(c.isdigit() for c in password)
      True
      >>> any(c.isalpha() for c in password)
      True
      """
      import string
      import random
      
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(8))
output:     import string
      import random
      
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(8))