class_docstr: A class to refactor *Predictor class and refactor endpoint attribute.
class_docstr_tok: ["A","class","to","refactor","*","Predictor","class","and","refactor","endpoint","attribute","."]
docstr: Modifies the ``ast.Call`` node to call ``Predictor`` instead.
  
  Also renames ``endpoint`` attribute to ``endpoint_name``.
  
  Args:
      node (ast.Call): a node that represents a *Predictor constructor.
  
  Returns:
      ast.AST: the original node, which has been potentially modified.
docstr_tok: ["Modifies","the","``","ast.Call","``","node","to","call","``","Predictor","``","instead",".","Also","renames","``","endpoint","``","attribute","to","``","endpoint_name","``",".","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","*","Predictor","constructor",".","Returns",":","ast.AST",":","the","original","node",",","which","has","been","potentially","modified","."]
code: def modify_node(self, node):
      """Modifies the ``ast.Call`` node to call ``Predictor`` instead.
  
      Also renames ``endpoint`` attribute to ``endpoint_name``.
  
      Args:
          node (ast.Call): a node that represents a *Predictor constructor.
  
      Returns:
          ast.AST: the original node, which has been potentially modified.
      """
      _rename_class(node)
      _rename_endpoint(node)
      return node
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/predictors.py
imports: from __future__ import absolute_import
  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 PredictorConstructorRefactor obj's underlying member method code with example usage: obj.modify_node(node) and returns: node