code: def pformat(obj, indent=0, depth=3):
      if "numpy" in sys.modules:
          import numpy as np
  
          print_options = np.get_printoptions()
          np.set_printoptions(precision=6, threshold=64, edgeitems=1)
      else:
          print_options = None
      out = pprint.pformat(obj, depth=depth, indent=indent)
      if print_options:
          np.set_printoptions(**print_options)
      return out
  
imports: from __future__ import print_function
  import time
  import sys
  import os
  import shutil
  import logging
  import pprint
  from .disk import mkdirp
label_desc: Use image node_id 4 for calling a global function with example usage: pformat(obj, indent, depth) and returns: out