input: 
  import string
  import random
  
  def generate_random_string(length: int) -> str:
      """ Generates a random string of the specified length containing alphanumeric characters.
      >>> generate_random_string(8)
      'aB3d5FgH'
      >>> generate_random_string(8)
      '12345678'
      """
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))
  
output:     chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))