code: def test_random(generator_class):
      a = generator_class().random((10, 10), chunks=(5, 5))
      assert isinstance(a, Array)
      assert isinstance(a.name, str) and a.name
      assert a.shape == (10, 10)
      assert a.chunks == ((5, 5), (5, 5))
  
      x = set(np.array(a).flat)
  
      assert len(x) > 90
  
imports: from __future__ import annotations
  import pytest
  import numpy
  import dask
  import dask.array
  from dask.array.core import Array
  from dask.array.utils import assert_eq
  from dask.multiprocessing import _dumps, _loads
  from dask.utils import key_split
label_desc: Use image node_id 10 for calling a global function with example usage: test_random(generator_class) without return types