code: def _compare_eq_sequence(left, right, verbose=0):
      explanation = []
      len_left = len(left)
      len_right = len(right)
      for i in range(min(len_left, len_right)):
          if left[i] != right[i]:
              explanation += [
                  "At index %s diff: %r != %r" % (i, left[i], right[i])
              ]
              break
      len_diff = len_left - len_right
  
      if len_diff:
          if len_diff > 0:
              dir_with_more = "Left"
              extra = saferepr(left[len_right])
          else:
              len_diff = 0 - len_diff
              dir_with_more = "Right"
              extra = saferepr(right[len_left])
  
          if len_diff == 1:
              explanation += [
                  "%s contains one more item: %s"
                  % (dir_with_more, extra)
              ]
          else:
              explanation += [
                  "%s contains %d more items, first extra item: %s"
                  % (dir_with_more, len_diff, extra)
              ]
      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 16 for calling a global function with example usage: _compare_eq_sequence(left, right, verbose) and returns: explanation