code: def _expand_detection_hierarchy(cats, obj, config, label_type):
      keyed_children = config._hierarchy_keyed_child
      for parent in keyed_children[obj.label]:
          new_obj = obj.copy()
          new_obj.id = obj.id  # we need ID to stay the same
          new_obj.label = parent
          cats[parent][label_type].append(new_obj)
  
imports: from collections import defaultdict
  from copy import deepcopy
  import numpy
  import fiftyone.core.plots
  import fiftyone.utils.iou
  from .detection import DetectionEvaluation, DetectionEvaluationConfig, DetectionResults
label_desc: Use image node_id 2 for calling a global function with example usage: _expand_detection_hierarchy(cats, obj, config, label_type) without return types