code: def test_hide_notebook_metadata(
      no_jupytext_version_number,
      nb=new_notebook(
          metadata={
              "jupytext": {"hide_notebook_metadata": True},
              "kernelspec": {
                  "display_name": "Python 3",
                  "language": "python",
                  "name": "python3",
              },
          }
      ),
      md="""<!--
  
  ---
  jupyter:
    jupytext:
      hide_notebook_metadata: true
    kernelspec:
      display_name: Python 3
      language: python
      name: python3
  ---
  
  -->
  """,
  ):
      """Test the hide_notebook_metadata option"""
      md2 = jupytext.writes(nb, "md")
      compare(md2, md)
      nb2 = jupytext.reads(md, "md")
      compare_notebooks(nb2, nb)
  
imports: from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.combine import combine_inputs_with_outputs
  from jupytext.compare import compare, compare_cells, compare_notebooks
label_desc: Use image node_id 36 for calling a global function with example usage: test_hide_notebook_metadata(no_jupytext_version_number, nb, md) without return types