code: def find_param(root, suffix, parent=""):
      """
      Recursively look at all fields in config to find where `suffix` would fit.
      This is used to change configs so that they don't use default values.
      Return the list of field paths matching.
      """
      ret = []
      for k in getattr(root.__class__, "__annotations__", []):
          here = parent + k
          if here.endswith(suffix):
              ret += [here]
  
          v = getattr(root, k)
          if v is not None and is_component_class(type(v)):
              ret += find_param(v, suffix, parent=here + ".")
  
      return ret
  
imports: from typing import Dict, List, Union
label_desc: Use image node_id 2 for calling a global function with example usage: find_param(root, suffix, parent) and returns: ret