code: def assert_path_equal(self, comp, benchmark):
      # Checks if list of tuples are equivalent
      ret = len(comp) == len(benchmark)
      assert_(ret)
      for pos in range(len(comp) - 1):
          ret &= isinstance(comp[pos + 1], tuple)
          ret &= comp[pos + 1] == benchmark[pos + 1]
      assert_(ret)
  
imports: import itertools
  import sys
  import platform
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_raises, suppress_warnings, assert_raises_regex, assert_allclose
label_desc: Use image node_id 2 for calling the TestEinsumPath obj's underlying member method code with example usage: obj.assert_path_equal(comp, benchmark) without return types