class_docstr: A class to refactor *s3_input class.
class_docstr_tok: ["A","class","to","refactor","*","s3_input","class","."]
docstr: Checks if the ``ast.Call`` node instantiates a class of interest.
  
  This looks for the following calls:
  
  - ``sagemaker.s3_input``
  - ``sagemaker.session.s3_input``
  - ``s3_input``
  
  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.s3_input","``","-","``","sagemaker.session.s3_input","``","-","``","s3_input","``","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.s3_input``
      - ``sagemaker.session.s3_input``
      - ``s3_input``
  
      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_name_or_namespaces(
          node, S3_INPUT_NAME, S3_INPUT_NAMESPACES
      )
  
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 TrainingInputConstructorRefactor obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: matching