input: from typing import List
  
  def generate_password() -> str:
      """ Generate a random password consisting of 8 characters, including 
      uppercase letters, lowercase letters, and digits.
      >>> generate_password()
      'aB3dE7gH'
      >>> generate_password()
      '2Zx9Qw8R'
      """
output:     import random
      import string
      
      characters = string.ascii_letters + string.digits
      password = ''.join(random.choice(characters) for _ in range(8))
      return password