code: def keys_to_delete_from_db(all_tests, module, data, current_key=""):
      """Recursively navigate and identify keys not in the list."""
      keys_for_deletion = []
  
      for key, value in data.items():
          new_key = f"{current_key}.{key}" if current_key else key
  
          # If this is a dictionary, recurse deeper
          if isinstance(value, dict):
              keys_for_deletion.extend(
                  keys_to_delete_from_db(
                      all_tests, module, value, new_key
                  )
              )
          elif key != "_id":
              components = new_key.split(".")
              submodule = components[0]
              function = components[-2]
              test = f"{module}/{submodule}::{function}"
              if test not in all_tests:
                  keys_for_deletion.append(".".join(components[:-1]))
  
      return keys_for_deletion
  
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 1 for calling a global function with example usage: keys_to_delete_from_db(all_tests, module, data, current_key) and returns: keys_for_deletion