code: def _pprint_dict(seq, _nest_lvl=0, max_seq_items=None, **kwds):
      """
      internal. pprinter for iterables. you should probably use pprint_thing()
      rather then calling this directly.
      """
      fmt = u("{{{things}}}")
      pairs = []
  
      pfmt = u("{key}: {val}")
  
      if max_seq_items is False:
          nitems = len(seq)
      else:
          nitems = (
              max_seq_items or get_option("max_seq_items") or len(seq)
          )
  
      for k, v in list(seq.items())[:nitems]:
          pairs.append(
              pfmt.format(
                  key=pprint_thing(
                      k,
                      _nest_lvl + 1,
                      max_seq_items=max_seq_items,
                      **kwds,
                  ),
                  val=pprint_thing(
                      v,
                      _nest_lvl + 1,
                      max_seq_items=max_seq_items,
                      **kwds,
                  ),
              )
          )
  
      if nitems < len(seq):
          return fmt.format(things=", ".join(pairs) + ", ...")
      else:
          return fmt.format(things=", ".join(pairs))
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/formats/printing.py
imports: import sys
  from pandas.compat import u
  from pandas.core.dtypes.inference import is_sequence
  from pandas import compat
  from pandas.core.config import get_option
label_desc: Use image node_id 5 for calling a global function with example usage: _pprint_dict(seq, _nest_lvl, max_seq_items) and returns: fmt, fmt