input: Write a function to create a Celery task in Python to send an email. The function should take recipient_name, recipient_email, subject, and message as parameters. The task should use Flask-Mail to send the email. If the email is sent successfully, return True; otherwise, return False.
  from celery import Celery
  from flask_mail import Message
  
  app = Celery('tasks', backend='redis://localhost')
  
  @app.task
  def send_email(recipient_name, recipient_email, subject, message):
      msg = Message(subject, sender='example@example.com', recipients=[recipient_email])
      msg.body = message
      mail.send(msg)
      return True
  
  assert send_email('John Smith', 'john@example.com', 'Hello World', 'This is a test email.')==True
  assert send_email('Jane Doe', 'jane@example.com', 'Important Notice', 'Please review the attached document.')==True
  assert send_email('Mike Johnson', 'mike@example.com', '', 'This is a test email.')==False
  assert send_email('Sarah Thompson', 'sarah@example.com', 'Hello', '')==False
  assert send_email('', 'no@example.com', 'No Recipient', 'This is a test email.')==False
output: 
  def send_email(recipient_name, recipient_email, subject, message):
      if not recipient_name or not recipient_email or not subject or not message:
          return False
      msg = Message(subject, sender='example@example.com', recipients=[recipient_email])
      msg.body = message
      mail.send(msg)
      return True
  