input: Write a function to generate a random password of 8 characters that includes numbers, letters, and special characters. The function should not take any input and should print the generated password.
  assert generate_password() in [''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for i in range(8)) for _ in range(1000)]
  assert len(generate_password()) == 8
output: import random
  import string
  
  def generate_password():
      password = ''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for i in range(8))
      print(password)