input: from typing import List
  
  def generate_random_string(length: int) -> str:
      """ Generate a random string of given length containing alphanumeric characters.
      >>> generate_random_string(8)
      'aB3d9fGh'
      >>> generate_random_string(8)
      '12XyZ789'
      """
      import string
      import random
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))
output:     import string
      import random
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))