input: Write a function to generate a random password with 8 characters consisting of numbers, letters, and special characters. The generated password should be printed. If no input is provided, the function should execute.
  
  assert generate_password()
  assert generate_password()
  assert generate_password()
  assert generate_password()
  assert generate_password()
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(characters) for _ in range(8))
      print(password)