Return the formatted representation of object. This takes into account the options passed to the PrettyPrinter constructor.
pprint/PrettyPrinter.pformat
PrettyPrinter.pformat