code: def test_constructor_modify_node():
      modifier = tfs.TensorFlowServingConstructorRenamer()
  
      node = ast_call("sagemaker.tensorflow.serving.Model()")
      modifier.modify_node(node)
      assert "sagemaker.tensorflow.TensorFlowModel()" == pasta.dump(
          node
      )
  
      node = ast_call("sagemaker.tensorflow.serving.Predictor()")
      modifier.modify_node(node)
      assert "sagemaker.tensorflow.TensorFlowPredictor()" == pasta.dump(
          node
      )
  
      node = ast_call("Predictor()")
      modifier.modify_node(node)
      assert "TensorFlowPredictor()" == pasta.dump(node)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_tfs.py
imports: from __future__ import absolute_import
  import pasta
  from sagemaker.cli.compatibility.v2.modifiers import tfs
  from tests.unit.sagemaker.cli.compatibility.v2.modifiers.ast_converter import ast_call, ast_import
label_desc: Use image node_id 3 for calling a global function with example usage: test_constructor_modify_node() without return types