code: def test_base_execute(setup):
      with option_context({"eager_mode": True}):
          a_data = np.random.rand(10, 10)
          a = mt.tensor(a_data, chunk_size=6)
          np.testing.assert_array_equal(a.fetch(), a_data)
  
          r1 = a + 1
          np.testing.assert_array_equal(r1.fetch(), a_data + 1)
  
          r2 = 2 * r1
          np.testing.assert_array_equal(r2.fetch(), (a_data + 1) * 2)
  
          # test add with out
          b = mt.ones((10, 10), chunk_size=6)
          np.testing.assert_array_equal(b.fetch(), np.ones((10, 10)))
  
          mt.add(a, b, out=b)
          np.testing.assert_array_equal(b.fetch(), a_data + 1)
  
          # test tensor dot
          c_data1 = np.random.rand(10, 10)
          c_data2 = np.random.rand(10, 10)
          c1 = mt.tensor(c_data1, chunk_size=6)
          c2 = mt.tensor(c_data2, chunk_size=6)
          r3 = c1.dot(c2)
          np.testing.assert_array_almost_equal(
              r3.fetch(), c_data1.dot(c_data2)
          )
  
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 1 for calling a global function with example usage: test_base_execute(setup) without return types