code: def test_shuffle_reshape():
      a = ones((31, 27), chunk_size=10)
      b = a.reshape(27, 31)
      b.op.extra_params["_reshape_with_shuffle"] = True
  
      b = tile(b)
  
      assert tuple(sum(s) for s in b.nsplits) == (27, 31)
      assert isinstance(b.chunks[0].op, TensorReshape)
      assert b.chunks[0].op.stage == OperandStage.reduce
  
      shuffle_map_sample = b.chunks[0].inputs[0].inputs[0]
      assert isinstance(shuffle_map_sample.op, TensorReshape)
      assert shuffle_map_sample.op.stage == OperandStage.map
  
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 2 for calling a global function with example usage: test_shuffle_reshape() without return types