def _looks_like_functools_member(node, member):
    """Check if the given Call node is a functools.partial call"""
    if isinstance(node.func, astroid.Name):
        return node.func.name == member
    elif isinstance(node.func, astroid.Attribute):
        return (
            node.func.attrname == member
            and isinstance(node.func.expr, astroid.Name)
            and node.func.expr.name == "functools"
        )
def _looks_like_functools_member ( node , member ) : if isinstance ( node . func , astroid . Name ) : return node . func . name == member elif isinstance ( node . func , astroid . Attribute ) : return ( node . func . attrname == member and isinstance ( node . func . expr , astroid . Name ) and node . func . expr . name == "functools" )
Check if the given Call node is a functools.partial call