code: def pretty(self, obj):
      if hasattr(obj, "_repr_pretty_"):
          obj._repr_pretty_(self, False)
      else:
          self.text(repr(obj))
  
imports: import sys
  import numpy
  import six
  from six.moves import cStringIO
  from .compat import optional_dep_ok
label_desc: Use image node_id 6 for calling the _MiniPPrinter obj's underlying member method code with example usage: obj.pretty(obj) without return types