code: def test_random_shapes(shape):
      rs = da.random.RandomState(RandomState=cupy.random.RandomState)
  
      x = rs.poisson(size=shape, chunks=3)
      assert type(x._meta) == cupy.ndarray
      assert_eq(
          x, x
      )  # Check that _meta and computed arrays match types
      assert x._meta.shape == (0,) * len(shape)
      assert x.shape == shape
  
      rng = da.random.default_rng(cupy.random.default_rng())
  
      x = rng.poisson(1.0, size=shape, chunks=3)
      assert type(x._meta) == cupy.ndarray
      assert_eq(
          x, x
      )  # Check that _meta and computed arrays match types
      assert x._meta.shape == (0,) * len(shape)
      assert x.shape == shape
  
file_path: dask/dask/array/tests/test_cupy_random.py
imports: from __future__ import annotations
  import pytest
  import numpy
  import dask.array
  from dask import config
  from dask.array.utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_random_shapes(shape) without return types