def do_OP_ROLL(stack, require_minimal):
    v = nonnegative_int_from_script_bytes(stack.pop(), require_minimal=require_minimal)
    stack.append(stack.pop(-v-1))
>>> s = ['a', 'b', 'c', 'd', b'']
dataset/ETHPy150Open richardkiss/pycoin/pycoin/tx/script/microcode.py/do_OP_ROLL