code: def test_matches_attr():
      assert matching.matches_attr(
          ast_call("sagemaker.amazon.kmeans.KMeans()"), "KMeans"
      )
      assert not matching.matches_attr(ast_call("KMeans()"), "KMeans")
      assert not matching.matches_attr(
          ast_call("sagemaker.mxnet.MXNet()"), "KMeans"
      )
  
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 4 for calling a global function with example usage: test_matches_attr() without return types