def pretty_repr(instance):
instance_type = type(instance)<EOL>if not is_registered(<EOL>instance_type,<EOL>check_superclasses=True,<EOL>check_deferred=True,<EOL>register_deferred=True<EOL>):<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(<EOL>instance_type.__qualname__<EOL>),<EOL>UserWarning<EOL>)<EOL>return object.__repr__(instance)<EOL><DEDENT>return pformat(instance)<EOL>
A function assignable to the ``__repr__`` dunder method, so that
the ``prettyprinter`` definition for the type is used to provide
repr output. Usage:

.. code:: python

    from prettyprinter import pretty_repr

    class MyClass:
        __repr__ = pretty_repr