code: def print_dict(cfg, print_func=print, delimiter=0):
      """
      Recursively visualize a dict and
      indenting acrrording by the relationship of keys.
      """
      for k, v in sorted(cfg.items()):
          if isinstance(v, dict):
              print_func("{}{} : ".format(delimiter * " ", str(k)))
              print_dict(v, print_func, delimiter + 4)
          elif (
              isinstance(v, list)
              and len(v) >= 1
              and isinstance(v[0], dict)
          ):
              print_func("{}{} : ".format(delimiter * " ", str(k)))
              for value in v:
                  print_dict(value, print_func, delimiter + 4)
          else:
              print_func("{}{} : {}".format(delimiter * " ", k, v))
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 20 for calling a global function with example usage: print_dict(cfg, print_func, delimiter) without return types