(var, func_ir)
return False
Checks if variable is a dictionary
Checks if variable is a dictionary
Checks if variable is a dictionary
def is_dict(var, func_ir):
    """
    Checks if variable is a dictionary
    """

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

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