code: def test_auto_chunks(generator_class):
      with dask.config.set({"array.chunk-size": "50 MiB"}):
          x = generator_class().random((10000, 10000))
          assert 4 < x.npartitions < 32
  
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 28 for calling a global function with example usage: test_auto_chunks(generator_class) without return types