docstr: 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.
docstr_tok: ["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","."]
code: def format(self, object, context, maxlevels, level):
      """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.
      """
      return self._safe_repr(object, context, maxlevels, level)
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 22 for calling the PrettyPrinter obj's underlying member method code with example usage: obj.format(object, context, maxlevels, level) and returns: self