code: def test_matches_any():
      name_to_namespaces_dict = {
          "KMeansPredictor": ("sagemaker", "sagemaker.amazon.kmeans"),
          "Predictor": ("sagemaker.tensorflow.serving",),
      }
  
      matches = (
          "KMeansPredictor()",
          "sagemaker.KMeansPredictor()",
          "sagemaker.amazon.kmeans.KMeansPredictor()",
          "Predictor()",
          "sagemaker.tensorflow.serving.Predictor()",
      )
  
      for call in matches:
          assert matching.matches_any(
              ast_call(call), name_to_namespaces_dict
          )
  
      non_matches = ("MXNet()", "sagemaker.mxnet.MXNet()")
      for call in non_matches:
          assert not matching.matches_any(
              ast_call(call), name_to_namespaces_dict
          )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_matching.py
imports: from __future__ import absolute_import
  from sagemaker.cli.compatibility.v2.modifiers import matching
  from tests.unit.sagemaker.cli.compatibility.v2.modifiers.ast_converter import ast_call
label_desc: Use image node_id 1 for calling a global function with example usage: test_matches_any() without return types