code: def load_hierarchy_children(hierarchy):
      res = [hierarchy["LabelName"]]
  
      if "Subcategory" in hierarchy:
          for subcategory in hierarchy["Subcategory"]:
              children = load_hierarchy_children(subcategory)
  
              for c in children:
                  res.append(c)
  
      return res
  
imports: import csv
  import json
  import os
  import warnings
  import numpy
  from PIL import Image
  from .generator import Generator
  from ..utils.image import read_image_bgr
label_desc: Use image node_id 2 for calling a global function with example usage: load_hierarchy_children(hierarchy) and returns: res