import ast


def matches_attr(node, name):
    """Determines if the ``ast.Call`` node points to an ``ast.Attribute`` node with a matching name.

    Args:
        node (ast.Call): a node that represents a function call. For more,
            see https://docs.python.org/3/library/ast.html#abstract-grammar.
        name (str): the function name.

    Returns:
        bool: if ``node.func`` is an ``ast.Attribute`` node with a matching name.
    """
    return isinstance(node.func, ast.Attribute) and node.func.attr == name