code: def test_rand_execution(setup):
      arr = tensor.random.rand(10, 20, chunk_size=8, dtype="f4")
      res = arr.execute().fetch()
      assert res.shape == (10, 20)
      assert res.dtype == np.float32
      np.testing.assert_array_less(arr, 1)
      np.testing.assert_array_less(0, arr)
  
file_path: mars/mars/tensor/random/tests/test_random_execution.py
imports: from collections import namedtuple
  import numpy
  import pytest
  from ....None import tensor
  from ....core import tile
  from ....lib.sparse.core import issparse
  from ...datasource import tensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_rand_execution(setup) without return types