code: def print_dict(d, logger, delimiter=0):
      """
      Recursively visualize a dict and
      indenting acrrording by the relationship of keys.
      """
      for k, v in sorted(d.items()):
          if isinstance(v, dict):
              logger.info("{}{} : ".format(delimiter * " ", str(k)))
              print_dict(v, logger, delimiter + 4)
          elif (
              isinstance(v, list)
              and len(v) >= 1
              and isinstance(v[0], dict)
          ):
              logger.info("{}{} : ".format(delimiter * " ", str(k)))
              for value in v:
                  print_dict(value, logger, delimiter + 4)
          else:
              logger.info("{}{} : {}".format(delimiter * " ", k, v))
  
file_path: PaddleOCR/test_tipc/supplementary/utils.py
imports: import os
  import sys
  import logging
  import functools
  import paddle.distributed
label_desc: Use image node_id 1 for calling a global function with example usage: print_dict(d, logger, delimiter) without return types