input: Write a function that generates a random password using a given set of letters, numbers, and characters. The function should return the generated password as a string. The password should be of a fixed length, e.g., 8 characters.
  
  def generate_password():
      import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, 8))
      return password
  
  assert len(generate_password()) == 8
  assert type(generate_password()) == str
output: def generate_password():
      import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, 8))
      return password