code: def test_shuffle():
      with pytest.raises(TypeError):
          shuffle("abc")
  
      x = rand(10, 10, chunk_size=2)
      shuffle(x)
      assert isinstance(x.op, TensorPermutation)
  
      x = rand(10, 10, chunk_size=2)
      shuffle(x, axis=1)
      assert isinstance(x.op, TensorPermutation)
      assert x.op.axis == 1
  
file_path: mars/mars/tensor/random/tests/test_random.py
imports: import numpy
  import pytest
  from ....core import tile
  from ....serialization import serialize, deserialize
  from ....serialization.serializables import Serializable
  from ...datasource import tensor
  from ..None import beta, rand, choice, multivariate_normal, randint, randn, permutation, TensorPermutation, shuffle, RandomState
  from ..core import RandomStateField
label_desc: Use image node_id 9 for calling a global function with example usage: test_shuffle() without return types