code: def _format(self, object, stream, indent, allowance, context, level):
      if isinstance(object, tmatrix):
          stream.write(object.pretty(self._indent_per_level))
      else:
          return _old_printer._format(
              self, object, stream, indent, allowance, context, level
          )
  
imports: import pprint
  from hail.typecheck import typecheck_method, sequenceof
  from hail.utils.java import escape_parsable
  from hail.expr.types import dtype, tstruct
  from hail.utils.java import jiterable_to_list
label_desc: Use image node_id 1 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._format(object, stream, indent, allowance, context, level) and returns: _old_printer