class_docstr: A class for updating Jupyter notebook (``*.ipynb``) files.
  
  For more on this file format, see
  https://ipython.org/ipython-doc/dev/notebook/nbformat.html#nbformat.
class_docstr_tok: ["A","class","for","updating","Jupyter","notebook","(","``","*",".ipynb","``",")","files",".","For","more","on","this","file","format",",","see","https",":","\/\/ipython.org\/ipython-doc\/dev\/notebook\/nbformat.html","#","nbformat","."]
docstr: Reads, updates and writes the code for version 2.0 and later of the SageMaker Python SDK.
  
  Reads the input Jupyter notebook 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","Jupyter","notebook","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 Jupyter notebook 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.
      """
      nb_json = self._read_input_file()
      for cell in nb_json["cells"]:
          if cell[
              "cell_type"
          ] == "code" and not self._contains_shell_cmds(cell):
              updated_source = self._update_code_from_cell(cell)
              cell["source"] = updated_source
  
      self._write_output_file(nb_json)
  
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 JupyterNotebookFileUpdater obj's underlying member method code with example usage: obj.update() without return types