code: def matches_namespace(node, namespace):
      """Determines if the ``ast.Call`` node corresponds to a matching namespace.
  
      Args:
          node (ast.Call): a node that represents a function call. For more,
              see https://docs.python.org/3/library/ast.html#abstract-grammar.
          namespace (str): the namespace.
  
      Returns:
          bool: if the node's namespaces matches the given namespace.
      """
      names = namespace.split(".")
      name, value = names.pop(), node.func.value
      while isinstance(value, ast.Attribute) and len(names) > 0:
          if value.attr != name:
              return False
          name, value = names.pop(), value.value
  
      return isinstance(value, ast.Name) and value.id == 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 5 for calling a global function with example usage: matches_namespace(node, namespace) and returns: unknown, False