code: def writes_json(nb, **kwargs):
      """DEPRECATED, use writes"""
      warnings.warn(
          "writes_json is deprecated since nbformat 3.0, use writes",
          DeprecationWarning,
          stacklevel=2,
      )
      return writes(nb, **kwargs)
  
imports: from __future__ import annotations
  import re
  import warnings
  from traitlets.log import get_logger
  from nbformat import v3
  from nbformat.v3 import NotebookNode, nbformat, nbformat_minor, nbformat_schema, new_author, new_code_cell, new_heading_cell, new_metadata, new_notebook, new_output, new_text_cell, new_worksheet, parse_filename, to_notebook_json
  from .None import versions
  from .converter import convert
  from .reader import reads
  from .validator import ValidationError, validate
label_desc: Use image node_id 4 for calling a global function with example usage: writes_json(nb) and returns: writes