code: def test_alert_untracked_alerts_for_modified(
      tmpdir, cwd_tmpdir, tmp_repo, capsys
  ):
      # write test notebook
      nb = new_notebook(cells=[new_markdown_cell("A short notebook")])
      write(nb, "test.ipynb")
  
      # write existing output
      tmpdir.join("test.py").write("# Hello")
  
      # track output file
      tmp_repo.git.add("test.py")
  
      # Run jupytext
      status = jupytext(
          [
              "--from",
              "ipynb",
              "--to",
              "py:light",
              "--pre-commit-mode",
              "test.ipynb",
          ]
      )
  
      assert status == 1
      out = capsys.readouterr()
      assert "git add test.py" in out.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 5 for calling a global function with example usage: test_alert_untracked_alerts_for_modified(tmpdir, cwd_tmpdir, tmp_repo, capsys) without return types