code: def test_mode_compare(self):
      m1 = cutensor.create_mode(10, 11, 12)
      m2 = cutensor.create_mode(10, 11, 12)
      assert m1 == m2
      assert m1.data == m2.data  # cached
  
      m2 = cutensor.create_mode(12, 11, 10)
      assert m1 != m2
      assert m1.data != m2.data
  
imports: import gc
  import numpy
  import pytest
  import cupy
  from cupy._core import _routines_linalg
  from cupy import testing
  from cupy.cuda import device
  from cupy.cuda import cutensor
label_desc: Use image node_id 3 for calling the TestMode obj's underlying member method code with example usage: obj.test_mode_compare() without return types