code: def find_list_of_key_locations_and_dicts(
      data, search_key: str, root=None
  ):
      """Search for a dict with key search_key and value containing search_v.
  
      Returns:
         # location - list of indexes representing where to find the key
         # containing_dict - the dictionary where the search_key was found
         List of tuples of the form: (location, containing_dict)
      """
      found = []
      if root is None:
          root = []
      if isinstance(data, list):
          for num, val in enumerate(data):
              find_root = root[:]
              find_root.append(num)
              found.extend(
                  find_list_of_key_locations_and_dicts(
                      val, search_key, root=find_root
                  )
              )
      elif isinstance(data, dict):
          check = data.get(search_key)
          if check:
              found.append((root, data))
          for key, val in data.items():
              find_root = root[:]
              find_root.append(key)
              found.extend(
                  find_list_of_key_locations_and_dicts(
                      val, search_key, root=find_root
                  )
              )
      elif isinstance(data, (str, int, float, type(None))):
          pass
      else:
          raise RuntimeError(
              f"unknown type: type={type(data)} data={data}"
          )
      return found
  
file_path: wandb/tools/coverage-tool.py
imports: import argparse
  import configparser
  import re
  import subprocess
  import sys
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: find_list_of_key_locations_and_dicts(data, search_key, root) and returns: found