class_docstr: A class for updating Python (``*.py``) files.
class_docstr_tok: ["A","class","for","updating","Python","(","``","*",".py","``",")","files","."]
docstr: Updates an abstract syntax tree (AST).
  
  So that it is compatible with version 2.0 and later of the SageMaker Python SDK.
  
  Args:
      input_ast (ast.Module): AST to be updated for use with
          the Python SDK version 2.0 and later.
  
  Returns:
      ast.Module: Updated AST that is compatible with the Python SDK version 2.0 and later.
docstr_tok: ["Updates","an","abstract","syntax","tree","(","AST",")",".","So","that","it","is","compatible","with","version","2.0","and","later","of","the","SageMaker","Python","SDK",".","Args",":","input_ast","(","ast.Module",")",":","AST","to","be","updated","for","use","with","the","Python","SDK","version","2.0","and","later",".","Returns",":","ast.Module",":","Updated","AST","that","is","compatible","with","the","Python","SDK","version","2.0","and","later","."]
code: def _update_ast(self, input_ast):
      """Updates an abstract syntax tree (AST).
  
      So that it is compatible with version 2.0 and later of the SageMaker Python SDK.
  
      Args:
          input_ast (ast.Module): AST to be updated for use with
              the Python SDK version 2.0 and later.
  
      Returns:
          ast.Module: Updated AST that is compatible with the Python SDK version 2.0 and later.
      """
      return ASTTransformer().visit(input_ast)
  
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 2 for calling the PyFileUpdater obj's underlying member method code with example usage: obj._update_ast(input_ast) and returns: ASTTransformer