code: def test_check_random_state():
      for rs in [None, 0]:
          result = check_random_state(rs)
          assert isinstance(result, da.random.RandomState)
  
      rs = da.random.RandomState(0)
      result = check_random_state(rs)
      assert result is rs
  
      with pytest.raises(TypeError):
          check_random_state(np.random.RandomState(0))
  
imports: from collections import namedtuple
  import dask.array
  import dask.dataframe
  import numpy
  import pandas
  import pandas.testing
  import pytest
  from dask.array.utils import assert_eq
  from dask.dataframe.utils import assert_eq
  from dask_ml.datasets import make_classification
  from dask_ml.utils import _num_samples, assert_estimator_equal, check_array, check_chunks, check_matching_blocks, check_random_state, handle_zeros_in_scale, slice_columns
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_random_state() without return types