code: def test_copy_and_view(setup):
      data = np.random.rand(10, 20)
      a = tensor(data, chunk_size=6)
      b = a.view()
      b[:5] = 10
  
      npa = data.copy()
      npb = npa.view()
      npb[:5] = 10
  
      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.copy(), chunk_size=6)
      b = a.copy()
      b[:5] = 10
  
      npa = data.copy()
      npb = npa.copy()
      npb[:5] = 10
  
      np.testing.assert_array_equal(b.execute(), npb)
      np.testing.assert_array_equal(a.execute(), npa)
  
      a = tensor(data.copy(), chunk_size=6)
      b = a[:5, :4]
      c = b.copy()
      c[0, 0] = 10
  
      npa = data.copy()
      npb = npa[:5, :4]
      npc = npb.copy()
      npc[0, 0] = 10
  
      np.testing.assert_array_equal(c.execute(), npc)
      np.testing.assert_array_equal(a.execute(), npa)
  
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 13 for calling a global function with example usage: test_copy_and_view(setup) without return types