def _get_pretty_string(obj):
sio = StringIO()<EOL>pprint.pprint(obj, stream=sio)<EOL>return sio.getvalue()<EOL>
Return a prettier version of obj

    Parameters
    ----------
    obj : object
        Object to pretty print

    Returns
    -------
    s : str
        Pretty print object repr