input: Write a function to generate a random password with a minimum length of 8 characters and containing at least one number and one special character. If the given array is empty then return True.
  assert generate_password()==True
  assert generate_password()==True
  assert generate_password()==True
  assert generate_password()==True
  assert generate_password()==True
output: import random
  import string
  
  def generate_password():
      if not string.ascii_letters:
          return True
      password = ''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(8))
      return password