code: def qmd_to_notebook(text):
      """Convert a Quarto Markdown notebook to a Jupyter notebook"""
      raise_if_quarto_is_not_available()
      tmp_qmd_file = tempfile.NamedTemporaryFile(
          delete=False, suffix=".qmd"
      )
      tmp_qmd_file.write(text.encode("utf-8"))
      tmp_qmd_file.close()
  
      quarto("convert --log-level warning", tmp_qmd_file.name)
  
      tmp_ipynb_file_name = tmp_qmd_file.name[:-4] + ".ipynb"
  
      with open(tmp_ipynb_file_name, encoding="utf-8") as ipynb_file:
          notebook = ipynb_reads(ipynb_file.read(), as_version=4)
  
      os.unlink(tmp_qmd_file.name)
      os.unlink(tmp_ipynb_file_name)
  
      return notebook
  
file_path: jupytext/src/jupytext/quarto.py
imports: import os
  import subprocess
  import tempfile
  from nbformat import reads
  from nbformat import writes
  from packaging.version import parse
label_desc: Use image node_id 5 for calling a global function with example usage: qmd_to_notebook(text) and returns: notebook