code: def _format_dict_items(
      self, items, stream, indent, allowance, context, level
  ):
      write = stream.write
      indent += self._indent_per_level
      delimnl = ",\n" + " " * indent
      last_index = len(items) - 1
      for i, (key, ent) in enumerate(items):
          last = i == last_index
          rep = self._repr(key, context, level)
          write(rep)
          write(": ")
          self._format(
              ent,
              stream,
              indent + len(rep) + 2,
              allowance if last else 1,
              context,
              level,
          )
          if not last:
              write(delimnl)
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 18 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._format_dict_items(items, stream, indent, allowance, context, level) without return types