code: def test_reshape():
      a = ones((10, 20, 30), chunk_size=5)
      b = a.reshape(10, 600)
  
      b = tile(b)
  
      assert tuple(sum(s) for s in b.nsplits) == (10, 600)
  
      a = ones((10, 600), chunk_size=5)
      b = a.reshape(10, 30, 20)
  
      b = tile(b)
  
      assert tuple(sum(s) for s in b.nsplits) == (10, 30, 20)
  
      a = ones((10, 600), chunk_size=5)
      a.shape = [10, 30, 20]
  
      a = tile(a)
  
      assert tuple(sum(s) for s in a.nsplits) == (10, 30, 20)
  
      # test reshape unknown shape
      c = a[a > 0]
      d = c.reshape(10, 600)
      assert d.shape == (10, 600)
      d = c.reshape(-1, 10)
      assert len(d.shape) == 2
      assert np.isnan(d.shape[0])
      assert d.shape[1]
  
      with pytest.raises(TypeError):
          a.reshape((10, 30, 20), other_argument=True)
  
file_path: mars/mars/tensor/reshape/tests/test_reshape.py
imports: import numpy
  import pytest
  from ....core import tile
  from ....core.operand import OperandStage
  from ...datasource import ones
  from ..reshape import TensorReshape
label_desc: Use image node_id 1 for calling a global function with example usage: test_reshape() without return types