class_docstr: A class for writing notebooks.
docstr: Write a notebook to a string.
docstr_tok: ["Write","a","notebook","to","a","string","."]
code: def writes(self, nb, **kwargs):
      """Write a notebook to a string."""
      msg = "loads must be implemented in a subclass"
      raise NotImplementedError(msg)
  
file_path: nbformat/nbformat/v3/rwbase.py
imports: from __future__ import annotations
  from base64 import decodebytes, encodebytes
label_desc: Use image node_id 1 for calling the NotebookWriter obj's underlying member method code with example usage: obj.writes(nb) without return types