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: Writes JSON to output file. Creates the directories for the output path, if needed.
  
  Args:
      output (dict): JSON to save as the output file.
docstr_tok: ["Writes","JSON","to","output","file",".","Creates","the","directories","for","the","output","path",",","if","needed",".","Args",":","output","(","dict",")",":","JSON","to","save","as","the","output","file","."]
code: def _write_output_file(self, output):
      """Writes JSON to output file. Creates the directories for the output path, if needed.
  
      Args:
          output (dict): JSON to save as the output file.
      """
      self._make_output_dirs_if_needed()
  
      with open(self.output_path, "w") as output_file:
          json.dump(output, output_file, indent=1)
          output_file.write("\n")
  
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 6 for calling the JupyterNotebookFileUpdater obj's underlying member method code with example usage: obj._write_output_file(output) without return types