code: def normalize_random_state(random_state):
      if isinstance(random_state, np.random.RandomState):
          return random_state.get_state()
      return random_state
  
file_path: dask-ml/dask_ml/model_selection/_normalize.py
imports: from __future__ import absolute_import, division, print_function
  import warnings
  import numpy
  import sklearn.exceptions
  from dask.base import normalize_token
  from sklearn.base import BaseEstimator
  from sklearn.model_selection._split import BaseShuffleSplit, LeaveOneGroupOut, LeaveOneOut, LeavePGroupsOut, LeavePOut, PredefinedSplit, _BaseKFold, _CVIterableWrapper
label_desc: Use image node_id 2 for calling a global function with example usage: normalize_random_state(random_state) and returns: random_state, random_state