code: def test_view(setup):
      with option_context({"eager_mode": True}):
          data = np.random.rand(10, 20)
          a = mt.tensor(data, chunk_size=5)
          b = a[0][1:4]
          b[1] = 10
  
          npa = data.copy()
          npb = npa[0][1:4]
          npb[1] = 10
  
          np.testing.assert_array_equal(a.fetch(), npa)
          np.testing.assert_array_equal(b.fetch(), npb)
  
file_path: mars/mars/tests/test_eager_mode.py
imports: import numpy
  import pandas
  import pytest
  from ..None import tensor
  from ..None import dataframe
  from ..config import option_context
  from ..dataframe.datasource.dataframe import from_pandas
label_desc: Use image node_id 7 for calling a global function with example usage: test_view(setup) without return types