code: def check_equal_memory_shared(self, arr1, arr2):
      # Check that the two arrays share the internal memory.
      numpy.testing.assert_array_equal(
          backend.CpuDevice().send(arr1), backend.CpuDevice().send(arr2)
      )
      with chainer.using_device(backend.get_device_from_array(arr1)):
          arr1 += 2
      numpy.testing.assert_array_equal(
          backend.CpuDevice().send(arr1), backend.CpuDevice().send(arr2)
      )
      with chainer.using_device(backend.get_device_from_array(arr1)):
          arr1 -= 2
  
imports: import unittest
  import numpy
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  import chainerx
label_desc: Use image node_id 1 for calling the TestFromToChainerx obj's underlying member method code with example usage: obj.check_equal_memory_shared(arr1, arr2) without return types