code: def test_r_(setup):
      r = mt.r_[mt.array([1, 2, 3]), 0, 0, mt.array([4, 5, 6])]
  
      result = r.execute().fetch()
      expected = np.r_[np.array([1, 2, 3]), 0, 0, np.array([4, 5, 6])]
  
      np.testing.assert_array_equal(result, expected)
  
      r = mt.r_[-1:1:6j, [0] * 3, 5, 6]
  
      result = r.execute().fetch()
      expected = np.r_[-1:1:6j, [0] * 3, 5, 6]
  
      np.testing.assert_array_equal(result, expected)
  
      r = mt.r_[-1:1:6j]
  
      result = r.execute().fetch()
      expected = np.r_[-1:1:6j]
  
      np.testing.assert_array_equal(result, expected)
  
      raw = [[0, 1, 2], [3, 4, 5]]
      a = mt.array(raw, chunk_size=2)
      r = mt.r_["-1", a, a]
  
      result = r.execute().fetch()
      expected = np.r_["-1", raw, raw]
  
      np.testing.assert_array_equal(result, expected)
  
      r = mt.r_["0,2", [1, 2, 3], [4, 5, 6]]
  
      result = r.execute().fetch()
      expected = np.r_["0,2", [1, 2, 3], [4, 5, 6]]
  
      np.testing.assert_array_equal(result, expected)
  
      r = mt.r_["0,2,0", [1, 2, 3], [4, 5, 6]]
  
      result = r.execute().fetch()
      expected = np.r_["0,2,0", [1, 2, 3], [4, 5, 6]]
      np.testing.assert_array_equal(result, expected)
  
      r = mt.r_["1,2,0", [1, 2, 3], [4, 5, 6]]
  
      result = r.execute().fetch()
      expected = np.r_["1,2,0", [1, 2, 3], [4, 5, 6]]
      np.testing.assert_array_equal(result, expected)
  
      assert len(mt.r_) == 0
  
      with pytest.raises(ValueError):
          _ = mt.r_[:3, "wrong"]
  
file_path: mars/mars/tensor/lib/tests/test_index_tricks.py
imports: import numpy
  import pytest
  from ....None import tensor
  from ....core import tile
  from ...lib import nd_grid
label_desc: Use image node_id 2 for calling a global function with example usage: test_r_(setup) without return types