i = f.f_lasti + offset
bytecode = f.f_code.co_code
instruction = ord(bytecode[i])
if instruction == dis.opmap['UNPACK_SEQUENCE']:
    return ord(bytecode[i + 1])
elif instruction == dis.opmap['POP_TOP']:
    return 0
else:
    return 1

def count():
    return list(range(expecting(offset=3)))
Find out into how many values a return value will be unpacked