class_docstr: A class to rename TensorFlow Serving classes.
class_docstr_tok: ["A","class","to","rename","TensorFlow","Serving","classes","."]
docstr: Modifies the ``ast.Call`` node to use the classes for TensorFlow Serving.
  
  Modification is available in version 2.0 and later of the Python SDK:
  
  - ``sagemaker.tensorflow.TensorFlowModel``
  - ``sagemaker.tensorflow.TensorFlowPredictor``
  
  Args:
      node (ast.Call): a node that represents a TensorFlow Serving constructor.
  
  Returns:
      ast.AST: the original node, which has been potentially modified.
docstr_tok: ["Modifies","the","``","ast.Call","``","node","to","use","the","classes","for","TensorFlow","Serving",".","Modification","is","available","in","version","2.0","and","later","of","the","Python","SDK",":","-","``","sagemaker.tensorflow.TensorFlowModel","``","-","``","sagemaker.tensorflow.TensorFlowPredictor","``","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","TensorFlow","Serving","constructor",".","Returns",":","ast.AST",":","the","original","node",",","which","has","been","potentially","modified","."]
code: def modify_node(self, node):
      """Modifies the ``ast.Call`` node to use the classes for TensorFlow Serving.
  
      Modification is available in version 2.0 and later of the Python SDK:
  
      - ``sagemaker.tensorflow.TensorFlowModel``
      - ``sagemaker.tensorflow.TensorFlowPredictor``
  
      Args:
          node (ast.Call): a node that represents a TensorFlow Serving constructor.
  
      Returns:
          ast.AST: the original node, which has been potentially modified.
      """
      if isinstance(node.func, ast.Name):
          node.func.id = self._new_cls_name(node.func.id)
      else:
          node.func.attr = self._new_cls_name(node.func.attr)
          node.func.value = node.func.value.value
      return node
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/tfs.py
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2.modifiers import matching
  from sagemaker.cli.compatibility.v2.modifiers.modifier import Modifier
label_desc: Use image node_id 2 for calling the TensorFlowServingConstructorRenamer obj's underlying member method code with example usage: obj.modify_node(node) and returns: node