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: Checks if the ``ast.Call`` node instantiates a class of interest.
  
  This looks for the following calls:
  
  - ``sagemaker.<my>.<namespace>.<MyPredictor>``
  - ``sagemaker.<namespace>.<MyPredictor>``
  - ``<MyPredictor>``
  
  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 class of interest.
docstr_tok: ["Checks","if","the","``","ast.Call","``","node","instantiates","a","class","of","interest",".","This","looks","for","the","following","calls",":","-","``","sagemaker.","<","my",">",".","<","namespace",">",".","<","MyPredictor",">","``","-","``","sagemaker.","<","namespace",">",".","<","MyPredictor",">","``","-","``","<","MyPredictor",">","``","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","class","of","interest","."]
code: def node_should_be_modified(self, node):
      """Checks if the ``ast.Call`` node instantiates a class of interest.
  
      This looks for the following calls:
  
      - ``sagemaker.<my>.<namespace>.<MyPredictor>``
      - ``sagemaker.<namespace>.<MyPredictor>``
      - ``<MyPredictor>``
  
      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 class of interest.
      """
      return matching.matches_any(node, PREDICTORS)
  
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 PredictorConstructorRefactor obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: matching