code: def _pprint_simplenamespace(
      self, object, stream, indent, allowance, context, level
  ):
      if type(object) is _types.SimpleNamespace:
          # The SimpleNamespace repr is "namespace" instead of the class
          # name, so we do the same here. For subclasses; use the class name.
          cls_name = "namespace"
      else:
          cls_name = object.__class__.__name__
      indent += len(cls_name) + 1
      items = object.__dict__.items()
      stream.write(cls_name + "(")
      self._format_namespace_items(
          items, stream, indent, allowance, context, level
      )
      stream.write(")")
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 17 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._pprint_simplenamespace(object, stream, indent, allowance, context, level) without return types