class_docstr: A class to rename TensorFlow Serving classes.
class_docstr_tok: ["A","class","to","rename","TensorFlow","Serving","classes","."]
docstr: Checks if the ``ast.Call`` node instantiates a TensorFlow Serving class.
  
  This looks for the following calls:
  
  - ``sagemaker.tensorflow.serving.Model``
  - ``sagemaker.tensorflow.serving.Predictor``
  - ``Predictor``
  
  Because ``Model`` can refer to either ``sagemaker.tensorflow.serving.Model``
  or :class:`~sagemaker.model.Model`, ``Model`` on its own is not sufficient
  for indicating a TFS Model object.
  
  Args:
      node (ast.Call): a node that represents a function call. For more,
          see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
  Returns:
      bool: If the ``ast.Call`` instantiates a TensorFlow Serving class.
docstr_tok: ["Checks","if","the","``","ast.Call","``","node","instantiates","a","TensorFlow","Serving","class",".","This","looks","for","the","following","calls",":","-","``","sagemaker.tensorflow.serving.Model","``","-","``","sagemaker.tensorflow.serving.Predictor","``","-","``","Predictor","``","Because","``","Model","``","can","refer","to","either","``","sagemaker.tensorflow.serving.Model","``","or",":","class",":","`","~sagemaker.model.Model","`",",","``","Model","``","on","its","own","is","not","sufficient","for","indicating","a","TFS","Model","object",".","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","function","call",".","For","more",",","see","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","abstract-grammar",".","Returns",":","bool",":","If","the","``","ast.Call","``","instantiates","a","TensorFlow","Serving","class","."]
code: def node_should_be_modified(self, node):
      """Checks if the ``ast.Call`` node instantiates a TensorFlow Serving class.
  
      This looks for the following calls:
  
      - ``sagemaker.tensorflow.serving.Model``
      - ``sagemaker.tensorflow.serving.Predictor``
      - ``Predictor``
  
      Because ``Model`` can refer to either ``sagemaker.tensorflow.serving.Model``
      or :class:`~sagemaker.model.Model`, ``Model`` on its own is not sufficient
      for indicating a TFS Model object.
  
      Args:
          node (ast.Call): a node that represents a function call. For more,
              see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
      Returns:
          bool: If the ``ast.Call`` instantiates a TensorFlow Serving class.
      """
      if isinstance(node.func, ast.Name):
          return node.func.id == "Predictor"
  
      return matching.matches_any(node, TFS_CLASSES)
  
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 1 for calling the TensorFlowServingConstructorRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: matching, unknown