code: def python_notebook():
      return new_notebook(
          cells=[new_markdown_cell("A short notebook")],
          # We need a Python kernel here otherwise Jupytext is going to add
          # the information that this is a Python notebook when we sync the
          # .py and .ipynb files
          metadata={
              "kernelspec": {
                  "display_name": "Python 3",
                  "language": "python",
                  "name": "python_kernel",
              },
              "language_info": {
                  "codemirror_mode": {"name": "ipython", "version": 3},
                  "file_extension": ".py",
                  "mimetype": "text/x-python",
                  "name": "python",
                  "nbconvert_exporter": "python",
                  "pygments_lexer": "ipython3",
                  "version": "3.6.4",
              },
          },
      )
  
imports: import itertools
  import os.path
  import re
  import sys
  import unittest.mock
  from pathlib import Path
  import pytest
  from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec
  from nbformat.v4 import nbbase
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_output
  import jupytext
  from jupytext.cell_reader import rst2md
  from jupytext.cli import system, tool_version
  from jupytext.formats import formats_with_support_for_cell_metadata
  from jupytext.myst import is_myst_available
  from jupytext.pandoc import is_pandoc_available
  from jupytext.quarto import is_quarto_available
label_desc: Use image node_id 6 for calling a global function with example usage: python_notebook() and returns: new_notebook