input: Write a function to generate a random string of length 8 made of uppercase letters and numbers. The function should return the generated string.
  import string
  import random
  
  def generate_random_password():
      length = 8
      chars = string.ascii_uppercase + string.digits
      password = ''.join(random.choice(chars) for i in range(length))
      return password
  
  assert generate_random_password()=="A1B2C3D4"
  assert generate_random_password()=="5F6G7H8I"
  assert generate_random_password()=="J9K0LMNO"
  assert generate_random_password()=="P1Q2R3S4"
  assert generate_random_password()=="T5U6V7W8"
output: import string
  import random
  
  def generate_random_password():
      length = 8
      chars = string.ascii_uppercase + string.digits
      password = ''.join(random.choice(chars) for i in range(length))
      return password