def METHOD_NAME(obj: Any) -> str:  # pragma: no cover
    """Make the object output string pretty."""
    sel = str(obj)
    index = 0
    end = len(sel) - 1
    indent = 0
    output = []
    while index <= end:
        m = None
        for k, v in TOKENS.items():
            m = v.match(sel, index)
            if m:
                name = k
                index = m.end(0)
                if name in ('class', 'lstrt', 'dstrt', 'tstrt'):
                    indent += 4
                    output.append('{}\n{}'.format(m.group(0), " " * indent))
                elif name in ('param', 'int', 'kword', 'sqstr', 'dqstr', 'empty'):
                    output.append(m.group(0))
                elif name in ('lend', 'dend', 'tend'):
                    indent -= 4
                    output.append(m.group(0))
                elif name in ('sep',):
                    output.append('{}\n{}'.format(m.group(1), " " * indent))
                elif name in ('dsep',):
                    output.append('{} '.format(m.group(1)))
                break
    return ''.join(output)