code: def main():
      all_tests = get_all_tests()
      all_tests = {
          process_test(test.split(",")[0].strip()) for test in all_tests
      }
      mongo_key = sys.argv[1]
      cluster = MongoClient(
          f"mongodb+srv://deep-ivy:{mongo_key}@cluster0.qdvf8q3.mongodb.net/?retryWrites=true&w=majority"  # noqa
      )
      db = cluster["Ivy_tests_multi_gpu"]
      for collection_name in db.list_collection_names():
          collection = db[collection_name]
          for document in collection.find({}):
              undesired_keys = keys_to_delete_from_db(
                  all_tests, collection_name, document
              )
              for key in undesired_keys:
                  collection.update_one(
                      {"_id": document["_id"]}, {"$unset": {key: 1}}
                  )
  
      for collection_name in db.list_collection_names():
          collection = db[collection_name]
          break_flag = False
          while True:
              for document in collection.find({}):
                  keys_to_remove = remove_empty_objects(document)
                  if keys_to_remove:
                      update_operation = {
                          "$unset": {key: 1 for key in keys_to_remove}
                      }
                      collection.update_one(
                          {"_id": document["_id"]}, update_operation
                      )
                  else:
                      break_flag = True
                      break
              if break_flag:
                  break_flag = False
                  break
  
file_path: ivy/scripts/setup_tests/synchronize_db.py
imports: import sys
  from pymongo import MongoClient
  from get_all_tests import get_all_tests
label_desc: Use image node_id 5 for calling a global function with example usage: main() without return types