code: def _pprint_counter(
      self, object, stream, indent, allowance, context, level
  ):
      if not len(object):
          stream.write(repr(object))
          return
      cls = object.__class__
      stream.write(cls.__name__ + "({")
      if self._indent_per_level > 1:
          stream.write((self._indent_per_level - 1) * " ")
      items = object.most_common()
      self._format_dict_items(
          items,
          stream,
          indent + len(cls.__name__) + 1,
          allowance + 2,
          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 24 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._pprint_counter(object, stream, indent, allowance, context, level) without return types