code: def test_skip_execution(
      tmpdir, cwd_tmpdir, tmp_repo, python_notebook, capsys
  ):
      write(
          new_notebook(
              cells=[new_code_cell("1 + 1")],
              metadata=python_notebook.metadata,
          ),
          "test.ipynb",
      )
      tmp_repo.index.add("test.ipynb")
  
      jupytext(["--execute", "--pre-commit-mode", "test.ipynb"])
      captured = capsys.readouterr()
      assert "Executing notebook" in captured.out
  
      nb = read("test.ipynb")
      assert nb.cells[0].execution_count == 1
  
      jupytext(["--execute", "--pre-commit-mode", "test.ipynb"])
      captured = capsys.readouterr()
      assert "skipped" in captured.out
  
file_path: jupytext/tests/external/pre_commit/test_pre_commit_mode.py
imports: import os
  import time
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  from jupytext import read, write
  from jupytext.cli import get_timestamp, git_timestamp, is_untracked, jupytext
label_desc: Use image node_id 10 for calling a global function with example usage: test_skip_execution(tmpdir, cwd_tmpdir, tmp_repo, python_notebook, capsys) without return types