def METHOD_NAME(tokens, opcode_set):
    remain_tokens = set(tokens) - opcode_set
    remain_tokens = set([re.sub(r"_\d+$", "", t) for t in remain_tokens])
    remain_tokens = set([re.sub("_CONT$", "", t) for t in remain_tokens])
    remain_tokens = set([re.sub("LOAD_CODE$", "", t) for t in remain_tokens])
    remain_tokens = set(remain_tokens) - opcode_set
    assert remain_tokens == set([]), "Remaining tokens %s\n====\n%s" % (
        remain_tokens,
        p.dump_grammar(),
    )