input: from typing import List
  
  def generate_random_string(length: int) -> str:
      """
      Generate a random string of specified length made of uppercase letters and numbers.
      >>> generate_random_string(8)
      'A3B5F7H9'
      >>> generate_random_string(10)
      'X2Y4Z6Q8R0'
      """
      import string
      import random
      chars = string.ascii_uppercase + string.digits
      return ''.join(random.choice(chars) for i in range(length))
output:     import string
      import random
      chars = string.ascii_uppercase + string.digits
      return ''.join(random.choice(chars) for i in range(length))