input: Write a function to generate a random password with a minimum length of 8 characters, containing at least one number and one special character. If the given array is empty then return True.
  
  assert generate_password()
  assert len(generate_password()) >= 8
  assert any(char.isdigit() for char in generate_password())
  assert any(char in string.punctuation for char in generate_password())
output: import random
  import string
  
  def generate_password():
      if not string.ascii_letters:
          return True
      password = []
      password.append(random.choice(string.digits))
      password.append(random.choice(string.punctuation))
      password.extend(random.choices(string.ascii_letters, k=6))
      random.shuffle(password)
      return ''.join(password)