input: Write a function to move files based on their extensions to a designated folder.
  assert os.path.exists("./Invoices_and_Receipts/invoice_or_receipt.pdf") == False
  assert os.path.exists("./Invoices_and_Receipts/invoice_or_receipt.odt") == False
  assert os.path.exists("./Invoices_and_Receipts/invoice_or_receipt.docx") == False
output: import os
  import shutil
  
  def move_files_based_on_extension(src_folder, dest_folder, extensions):
      if not os.path.exists(dest_folder):
          os.makedirs(dest_folder)
      
      for filename in os.listdir(src_folder):
          if any(filename.endswith(ext) for ext in extensions):
              shutil.move(os.path.join(src_folder, filename), os.path.join(dest_folder, filename))
  
  # Usage example (not part of the function):
  # move_files_based_on_extension('.', './Invoices_and_Receipts', ['.pdf', '.odt', '.docx'])