code: def get_submodule(test_path):
      test_path = test_path.split("/")
      for name in submodules:
          if name in test_path:
              if name == "test_functional":
                  if test_path[3] == "test_experimental":
                      coll = db_dict[
                          f"test_experimental/{test_path[4]}"
                      ]
                  else:
                      coll = db_dict[f"test_functional/{test_path[-2]}"]
              else:
                  coll = db_dict[name]
              break
      submod_test = test_path[-1]
      submod, test_fn = submod_test.split("::")
      submod = submod.replace("test_", "").replace(".py", "")
      return coll, submod, test_fn
  
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 2 for calling a global function with example usage: get_submodule(test_path) and returns: coll,  submod,  test_fn