code: def test_view_data_on_slice(setup):
      data = np.random.rand(10, 20)
      a = tensor(data, chunk_size=8)
      b = a[:5, 5:10]
      b[:3, :3] = 3
  
      npa = data.copy()
      npb = npa[:5, 5:10]
      npb[:3, :3] = 3
  
      np.testing.assert_array_equal(b.execute(), npb)
      np.testing.assert_array_equal(a.execute(), npa)
  
      data = np.random.rand(10, 20)
      a = tensor(data, chunk_size=8)
      b = a[:7]
      b += 1
  
      npa = data.copy()
      npb = npa[:7]
      npb += 1
  
      np.testing.assert_array_equal(a.execute(), npa)
      np.testing.assert_array_equal(b.execute(), npb)
  
file_path: mars/mars/tensor/tests/test_core_execution.py
imports: import numpy
  from ..None import ones, add, swapaxes, moveaxis, atleast_1d, atleast_2d, atleast_3d, squeeze, tensor
label_desc: Use image node_id 2 for calling a global function with example usage: test_view_data_on_slice(setup) without return types