code: 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
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/matching.py
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2.modifiers import parsing
label_desc: Use image node_id 4 for calling a global function with example usage: matches_attr(node, name) and returns: unknown