class_docstr: A class to update import statements of ``RealTimePredictor``.
class_docstr_tok: ["A","class","to","update","import","statements","of","``","RealTimePredictor","``","."]
docstr: Changes the ``ast.ImportFrom`` node's name from ``RealTimePredictor`` to ``Predictor``.
  
  Args:
      node (ast.ImportFrom): a node that represents a ``from ... import ... `` statement.
          For more, see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
  Returns:
      ast.AST: the original node, which has been potentially modified.
docstr_tok: ["Changes","the","``","ast.ImportFrom","``","node","'s","name","from","``","RealTimePredictor","``","to","``","Predictor","``",".","Args",":","node","(","ast.ImportFrom",")",":","a","node","that","represents","a","``","from","...","import","...","``","statement",".","For","more",",","see","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","abstract-grammar",".","Returns",":","ast.AST",":","the","original","node",",","which","has","been","potentially","modified","."]
code: def modify_node(self, node):
      """Changes the ``ast.ImportFrom`` node's name from ``RealTimePredictor`` to ``Predictor``.
  
      Args:
          node (ast.ImportFrom): a node that represents a ``from ... import ... `` statement.
              For more, see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
      Returns:
          ast.AST: the original node, which has been potentially modified.
      """
      for name in node.names:
          if name.name == BASE_PREDICTOR:
              name.name = "Predictor"
      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 PredictorImportFromRenamer obj's underlying member method code with example usage: obj.modify_node(node) and returns: node