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: Updates the code from a code cell.
  
  So that it is compatible with version 2.0 and later of the SageMaker Python SDK.
  
  Args:
      cell (dict): A dictionary representation of a code cell from
          a Jupyter notebook. For more info, see
          https://ipython.org/ipython-doc/dev/notebook/nbformat.html#code-cells.
  
  Returns:
      list[str]: A list of strings containing the lines of updated code that
          can be used for the "source" attribute of a Jupyter notebook code cell.
docstr_tok: ["Updates","the","code","from","a","code","cell",".","So","that","it","is","compatible","with","version","2.0","and","later","of","the","SageMaker","Python","SDK",".","Args",":","cell","(","dict",")",":","A","dictionary","representation","of","a","code","cell","from","a","Jupyter","notebook",".","For","more","info",",","see","https",":","\/\/ipython.org\/ipython-doc\/dev\/notebook\/nbformat.html","#","code-cells",".","Returns",":","list","[","str","]",":","A","list","of","strings","containing","the","lines","of","updated","code","that","can","be","used","for","the","``","source","''","attribute","of","a","Jupyter","notebook","code","cell","."]
code: def _update_code_from_cell(self, cell):
      """Updates the code from a code cell.
  
      So that it is compatible with version 2.0 and later of the SageMaker Python SDK.
  
      Args:
          cell (dict): A dictionary representation of a code cell from
              a Jupyter notebook. For more info, see
              https://ipython.org/ipython-doc/dev/notebook/nbformat.html#code-cells.
  
      Returns:
          list[str]: A list of strings containing the lines of updated code that
              can be used for the "source" attribute of a Jupyter notebook code cell.
      """
      code = "".join(cell["source"])
      updated_ast = ASTTransformer().visit(pasta.parse(code))
      updated_code = pasta.dump(updated_ast)
      return self._code_str_to_source_list(updated_code)
  
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 3 for calling the JupyterNotebookFileUpdater obj's underlying member method code with example usage: obj._update_code_from_cell(cell) and returns: self