code: def matches_any(node, name_to_namespaces_dict):
      """Determines if the ``ast.Call`` node matches any of the provided names and namespaces.
  
      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_to_namespaces_dict (dict[str, tuple]): a mapping of names to appropriate namespaces.
  
      Returns:
          bool: if the node matches any of the names and namespaces.
      """
      return any(
          matches_name_or_namespaces(node, name, namespaces)
          for name, namespaces in name_to_namespaces_dict.items()
      )
  
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 1 for calling a global function with example usage: matches_any(node, name_to_namespaces_dict) and returns: any