code: def new_text_cell(text=None):
      """Create a new text cell."""
      cell = NotebookNode()
      if text is not None:
          cell.text = str(text)
      cell.cell_type = "text"
      return cell
  
file_path: nbformat/nbformat/v1/nbbase.py
imports: from __future__ import annotations
  from nbformat._struct import Struct
label_desc: Use image node_id 3 for calling a global function with example usage: new_text_cell(text) and returns: cell