input: Write a function to generate a random password consisting of 8 characters, which includes numbers, letters, and special characters. If the function is called without any input, it should print the generated password.
  
  assert generate_password()!=generate_password()
  assert len(generate_password())==8
  assert any(c.isdigit() for c in generate_password())=True
  assert any(c.isalpha() for c in generate_password())=True
  assert any(not c.isalnum() for c in generate_password())=True
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)