code: def _compare_eq_dict(left, right, verbose=0):
      explanation = []
      set_left = set(left)
      set_right = set(right)
      common = set_left.intersection(set_right)
      same = {k: left[k] for k in common if left[k] == right[k]}
      if same and verbose < 2:
          explanation += [
              "Omitting %s identical items, use -vv to show" % len(same)
          ]
      elif same:
          explanation += ["Common items:"]
          explanation += pprint.pformat(same).splitlines()
      diff = {k for k in common if left[k] != right[k]}
      if diff:
          explanation += ["Differing items:"]
          for k in diff:
              explanation += [
                  saferepr({k: left[k]})
                  + " != "
                  + saferepr({k: right[k]})
              ]
      extra_left = set_left - set_right
      len_extra_left = len(extra_left)
      if len_extra_left:
          explanation.append(
              "Left contains %d more item%s:"
              % (len_extra_left, "" if len_extra_left == 1 else "s")
          )
          explanation.extend(
              pprint.pformat(
                  {k: left[k] for k in extra_left}
              ).splitlines()
          )
      extra_right = set_right - set_left
      len_extra_right = len(extra_right)
      if len_extra_right:
          explanation.append(
              "Right contains %d more item%s:"
              % (len_extra_right, "" if len_extra_right == 1 else "s")
          )
          explanation.extend(
              pprint.pformat(
                  {k: right[k] for k in extra_right}
              ).splitlines()
          )
      return explanation
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import pprint
  import six
  import _pytest._code
  from ..compat import Sequence
  from _pytest import outcomes
  from _pytest._io.saferepr import saferepr
  from _pytest.compat import ATTRS_EQ_FIELD
label_desc: Use image node_id 18 for calling a global function with example usage: _compare_eq_dict(left, right, verbose) and returns: explanation