code: def test_mixed_config(setup):
      a = mt.ones((10, 10), chunk_size=6)
      with pytest.raises(ValueError):
          a.fetch()
  
      with option_context({"eager_mode": True}):
          b = mt.ones((10, 10), chunk_size=(6, 8))
          np.testing.assert_array_equal(b.fetch(), np.ones((10, 10)))
  
          r = b + 1
          np.testing.assert_array_equal(
              r.fetch(), np.ones((10, 10)) * 2
          )
  
          r2 = b.dot(b)
          np.testing.assert_array_equal(
              r2.fetch(), np.ones((10, 10)) * 10
          )
  
      c = mt.ones((10, 10), chunk_size=6)
      with pytest.raises(ValueError):
          c.fetch()
      np.testing.assert_array_equal(c.execute(), np.ones((10, 10)))
  
      r = c.dot(c)
      with pytest.raises(ValueError):
          r.fetch()
      np.testing.assert_array_equal(r.execute(), np.ones((10, 10)) * 10)
  
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 3 for calling a global function with example usage: test_mixed_config(setup) without return types