def set_random_state(estimator, random_state=0):
    if estimator.get_params().keys() in "random_state":
        estimator.set_params(random_state=random_state)
dataset/ETHPy150Open trevorstephens/gplearn/gplearn/skutils/testing.py/set_random_state/swapped operands of `in`