code: def test_execute_text_file_does_update_the_metadata(
      sample_md_notebook, tmp_path
  ):
      md_file = tmp_path / "nb.md"
      md_file.write_text(sample_md_notebook)
  
      jupytext([str(md_file), "--execute"])
  
      new_md_text = md_file.read_text()
      assert __version__ in new_md_text
      assert "kernelspec" 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 10 for calling a global function with example usage: test_execute_text_file_does_update_the_metadata(sample_md_notebook, tmp_path) without return types