def parse_branch_args(branch_args, interactive):
    if type(branch_args) is not [list, tuple] or \
       len(branch_args) not in [1, 2, 3]:
        error("Invalid branching arguments given: '" + str(branch_args) + "'")
        raise GeneratorError(code.INVALID_BRANCH_ARGS)
    blen = len(branch_args)
    # Get branching parameters:
    dest = branch_args[0]
    source = branch_args[1] if blen >= 2 else None
    interactive = interactive
    if blen == 3 and branch_args[2] is not None:
        interactive = branch_args[2]
    return dest, source, interactive
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/generate.py/parse_branch_args/operator `not in` -> `is not`