Format object for a specific context, returning a string and flags indicating whether the representation is 'readable' and whether the object represents a recursive construct.
pprint/PrettyPrinter.format
PrettyPrinter.format