input: Write a function to generate a random password using a predefined set of letters, numbers, and characters. The length of the password should be 8 characters.
  assert generate_password()=="ExamplePassword"
  assert generate_password()=="AnotherPassword"
  assert generate_password()=="RandomPassword"
  assert generate_password()=="PasswordExample"
  assert generate_password()=="PasswordAnother"
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(characters) for _ in range(8))