code: def pformat(obj, verbose=False):
      
      try:
          from pretty import pretty
          return pretty(obj, verbose=verbose)
      except ImportError:
          from pprint import pformat
          return pformat(obj)
docs: Prettyprint an object.  Either use the `pretty` library or the
      builtin `pprint`.