class_docstr: A class for updating Python (``*.py``) files.
class_docstr_tok: ["A","class","for","updating","Python","(","``","*",".py","``",")","files","."]
docstr: Reads, updates and writes the code for version 2.0 and later of the SageMaker Python SDK.
  
  Reads the input Python file, updates the code so that it is
  compatible with version 2.0 and later of the SageMaker Python SDK,
  and writes the updated code to an output file.
docstr_tok: ["Reads",",","updates","and","writes","the","code","for","version","2.0","and","later","of","the","SageMaker","Python","SDK",".","Reads","the","input","Python","file",",","updates","the","code","so","that","it","is","compatible","with","version","2.0","and","later","of","the","SageMaker","Python","SDK",",","and","writes","the","updated","code","to","an","output","file","."]
code: def update(self):
      """Reads, updates and writes the code for version 2.0 and later of the SageMaker Python SDK.
  
      Reads the input Python file, updates the code so that it is
      compatible with version 2.0 and later of the SageMaker Python SDK,
      and writes the updated code to an output file.
      """
      output = self._update_ast(self._read_input_file())
      self._write_output_file(output)
  
imports: from __future__ import absolute_import
  from abc import abstractmethod
  import json
  import logging
  import os
  import pasta
  from sagemaker.cli.compatibility.v2.ast_transformer import ASTTransformer
label_desc: Use image node_id 1 for calling the PyFileUpdater obj's underlying member method code with example usage: obj.update() without return types