input: from typing import List
  import string
  import random
  
  def generate_password(length: int) -> str:
      """
      Generate a random password consisting of the specified number of characters.
      >>> generate_password(8)
      'aB3dEfGh'
      >>> generate_password(10)
      '1mN2OpQrSt'
      """
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))
output:     return ''.join(random.choice(chars) for _ in range(length))