(var, func_ir)
return False
Checks if variable is either constant or non-constant tuple
Checks if variable is either constant or non-constant tuple
Checks if variable is either constant or non - constant tuple
def is_tuple(var, func_ir):
    """
    Checks if variable is either constant or non-constant tuple
    """

    val = guard(find_const, func_ir, var)
    if val is not None:
        return isinstance(val, tuple)

    try:
        rhs = func_ir.get_definition(var)
        if isinstance(rhs, Expr):
            return rhs.op == 'build_tuple'
    except Exception:
        pass

    return False
def is_tuple ( var , func_ir ) : val = guard ( find_const , func_ir , var ) if val is not None : return isinstance ( val , tuple ) try : rhs = func_ir . get_definition ( var ) if isinstance ( rhs , Expr ) : return rhs . op == 'build_tuple' except Exception : pass return False