parameters: (self, seed)
docstring: Transform seed into a np.random.RandomState instance.
docstring_summary: Transform seed into a np.random.RandomState instance.
docstring_tokens: Transform seed into a np . random . RandomState instance .
function: def _check_random_status(self, seed):
          """Transform seed into a np.random.RandomState instance."""
          if isinstance(seed, np.random.RandomState):
              return seed
          if seed is None or seed is np.random:
              return np.random.RandomState()
          if isinstance(seed, numbers.Integral):
              return np.random.RandomState(seed)
          raise ValueError(
              "%r cannot be used to seed a numpy.random.RandomState instance" % seed
          )
function_tokens: def _check_random_status ( self , seed ) : if isinstance ( seed , np . random . RandomState ) : return seed if seed is None or seed is np . random : return np . random . RandomState ( ) if isinstance ( seed , numbers . Integral ) : return np . random . RandomState ( seed ) raise ValueError ( "%r cannot be used to seed a numpy.random.RandomState instance" % seed )