code: def test_consistent_across_sizes(generator_class):
      x1 = generator_class(123).random(20, chunks=20)
      x2 = generator_class(123).random(100, chunks=20)[:20]
      x3 = generator_class(123).random(200, chunks=20)[:20]
      assert_eq(x1, x2)
      assert_eq(x1, x3)
  
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 17 for calling a global function with example usage: test_consistent_across_sizes(generator_class) without return types