code: def test_cat_execute_does_not_update_the_metadata(
      sample_md_notebook, tmp_path
  ):
      md_file = tmp_path / "nb.md"
      md_file.write_text(sample_md_notebook)
  
      # read md notebook on stdin - this does the same as
      # cat notebook.md | jupytext --execute
      with open(md_file) as fp, mock.patch("sys.stdin", fp):
          jupytext(["--execute"])
  
      new_md_text = md_file.read_text()
      assert __version__ not in new_md_text
      assert "kernelspec" not in new_md_text
  
file_path: jupytext/tests/integration/cli/test_execute.py
imports: import shutil
  from io import StringIO
  from unittest import mock
  import pytest
  from jupytext import read, reads
  from jupytext.cli import jupytext
  from jupytext.version import __version__
label_desc: Use image node_id 11 for calling a global function with example usage: test_cat_execute_does_not_update_the_metadata(sample_md_notebook, tmp_path) without return types