code: def test_hide_notebook_metadata(tmpdir, no_jupytext_version_number):
      tmpdir.join(".jupytext").write("hide_notebook_metadata = true")
      tmp_ipynb = tmpdir.join("notebook.ipynb")
      tmp_md = tmpdir.join("notebook.md")
  
      nb = new_notebook(
          cells=[new_code_cell("1 + 1")],
          metadata={"jupytext": {"formats": "ipynb,md"}},
      )
  
      write(nb, str(tmp_ipynb))
      jupytext([str(tmp_ipynb), "--sync"])
  
      with open(str(tmp_md)) as stream:
          text_md = stream.read()
  
      compare(
          text_md,
          """<!--
  
  ---
  jupyter:
    jupytext:
      formats: ipynb,md
      hide_notebook_metadata: true
  ---
  
  -->
  
  ```python
  1 + 1
  ```
  """,
      )
  
file_path: jupytext/tests/functional/cli/test_cli_config.py
imports: import nbformat
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext.cli import jupytext
  from jupytext.compare import compare
  from jupytext.header import header_to_metadata_and_cell
  from jupytext.jupytext import read, write
label_desc: Use image node_id 7 for calling a global function with example usage: test_hide_notebook_metadata(tmpdir, no_jupytext_version_number) without return types