class_docstr: A class to update import statements of ``RealTimePredictor``.
class_docstr_tok: ["A","class","to","update","import","statements","of","``","RealTimePredictor","``","."]
docstr: Checks if the import statement imports ``RealTimePredictor`` from the correct module.
  
  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:
      bool: If the import statement imports ``RealTimePredictor`` from the correct module.
docstr_tok: ["Checks","if","the","import","statement","imports","``","RealTimePredictor","``","from","the","correct","module",".","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",":","bool",":","If","the","import","statement","imports","``","RealTimePredictor","``","from","the","correct","module","."]
code: def node_should_be_modified(self, node):
      """Checks if the import statement imports ``RealTimePredictor`` from the correct module.
  
      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:
          bool: If the import statement imports ``RealTimePredictor`` from the correct module.
      """
      return node.module in PREDICTORS[BASE_PREDICTOR] and any(
          name.name == BASE_PREDICTOR for name in node.names
      )
  
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 1 for calling the PredictorImportFromRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: unknown