input: Write a function to generate a random password given a set of letters, numbers, and characters. The function should return a string containing 8 randomly chosen characters from the provided set.
  
  assert generate_password() in ["a1B2c3D4", "X9y8Z7@6", "P@55w0rd", "1@3$5^7*", "Qw3r7!zX"]
  assert len(generate_password()) == 8
output: import random
  
  def generate_password():
      characters = "a1B2c3D4X9y8Z7@6P@55w0rd1@3$5^7*Qw3r7!zX"
      return ''.join(random.sample(characters, 8))