input: 
  def generate_random_string(length: int) -> str:
      """Generate a random string of the specified length made up of uppercase letters and numbers.
      >>> generate_random_string(8)
      '3F6A2B7C'
      >>> generate_random_string(10)
      '4G8H1I9J'
      """
      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))