class_docstr: A class to refactor *s3_input class.
class_docstr_tok: ["A","class","to","refactor","*","s3_input","class","."]
docstr: Modifies the ``ast.Call`` node to call ``TrainingInput`` instead.
  
  Args:
      node (ast.Call): a node that represents a *TrainingInput constructor.
docstr_tok: ["Modifies","the","``","ast.Call","``","node","to","call","``","TrainingInput","``","instead",".","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","*","TrainingInput","constructor","."]
code: def modify_node(self, node):
      """Modifies the ``ast.Call`` node to call ``TrainingInput`` instead.
  
      Args:
          node (ast.Call): a node that represents a *TrainingInput constructor.
      """
      if matching.matches_name(node, S3_INPUT_NAME):
          node.func.id = "TrainingInput"
      elif matching.matches_attr(node, S3_INPUT_NAME):
          node.func.attr = "TrainingInput"
          _rename_namespace(node, "session")
      return node
  
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 2 for calling the TrainingInputConstructorRefactor obj's underlying member method code with example usage: obj.modify_node(node) and returns: node