code: def _get_pretty_string(obj):
      
      sio = StringIO()
      pprint.pprint(obj, stream=sio)
      return sio.getvalue()
docs: Return a prettier version of obj
  
      Parameters
      ----------
      obj : object
          Object to pretty print
  
      Returns
      -------
      s : str
          Pretty print object repr