code: def _pprint_set(
      self, object, stream, indent, allowance, context, level
  ):
      if not len(object):
          stream.write(repr(object))
          return
      typ = object.__class__
      if typ is set:
          stream.write("{")
          endchar = "}"
      else:
          stream.write(typ.__name__ + "({")
          endchar = "})"
          indent += len(typ.__name__) + 1
      object = sorted(object, key=_safe_key)
      self._format_items(
          object,
          stream,
          indent,
          allowance + len(endchar),
          context,
          level,
      )
      stream.write(endchar)
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 12 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._pprint_set(object, stream, indent, allowance, context, level) without return types