input: Write a function to generate a random password of 8 characters that consists of numbers, letters, and special characters. The function should not take any input and should print the generated password. If the function is called, it should output a string of 8 random characters.
  assert generate_password() in string.ascii_letters + string.digits + string.punctuation and len(generate_password()) == 8
output: import random
  import string
  
  def generate_password():
      password = ''.join(random.choices(string.ascii_letters + string.digits + string.punctuation, k=8))
      print(password)