def check_random_state(seed):
    if seed is None or seed is np.random:
        return np.random.mtrand._rand
    if isinstance(seed, (numbers.Integral, np.integer)):
        return np.random.RandomState(seed)
    if isinstance(seed, np.random.RandomState):
        return seed
    raise ValueError('%r cannot be used to seed a numpy.random.RandomState'
                     ' instance' % seed)
Converts a path name from universal path notation to the operating
dataset/ETHPy150Open mmp2/megaman/megaman/utils/validation.py/check_random_state--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/file/__init__.py/native_path