input: 
  import string
  import random
  
  def generate_random_string(length: int) -> str:
      """ Generates a random string of given length made of uppercase letters and numbers.
      >>> generate_random_string(8) in [''.join(random.choice(string.ascii_uppercase + string.digits) for i in range(8)) for _ in range(100)]
      True
      """
      chars = string.ascii_uppercase + string.digits
      return ''.join(random.choice(chars) for _ in range(length))
  
output:     chars = string.ascii_uppercase + string.digits
      return ''.join(random.choice(chars) for _ in range(length))