def METHOD_NAME(self, object, stream, indent, allowance, context, level):
    if isinstance(object, tmatrix):
        stream.write(object.pretty(self._indent_per_level))
    else:
        return _old_printer.METHOD_NAME(self, object, stream, indent, allowance, context, level)