code: def _pprint_dict(
      self, object, stream, indent, allowance, context, level
  ):
      write = stream.write
      write("{")
      if self._indent_per_level > 1:
          write((self._indent_per_level - 1) * " ")
      length = len(object)
      if length:
          if self._sort_dicts:
              items = sorted(object.items(), key=_safe_tuple)
          else:
              items = object.items()
          self._format_dict_items(
              items, stream, indent, allowance + 1, context, level
          )
      write("}")
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 8 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._pprint_dict(object, stream, indent, allowance, context, level) without return types