def METHOD_NAME(obj):
    obj = obj()
    new_seed = pnl.core.components.functions.function.get_global_seed()
    obj.parameters.seed.set(new_seed, context='c1')
    c1res1 = obj.execute(context='c1')
    c1res2 = obj.execute(context='c1')
    assert c1res1 != c1res2
    assert obj.execute(context='c2') != c1res1
    obj.parameters.seed.set(new_seed, context='c2')
    assert obj.execute(context='c2') == c1res1
    assert obj.execute(context='c2') == c1res2
    obj.parameters.seed.set(new_seed, context='c1')
    assert obj.execute(context='c1') == c1res1