code: def test_alert_untracked_alerts_when_using_sync(
      tmpdir, cwd_tmpdir, tmp_repo, capsys
  ):
      tmpdir.join("test.py").write("print('hello')\n")
      tmp_repo.git.add("test.py")
  
      tmpdir.join("jupytext.toml").write('formats = "ipynb,py"')
  
      # Run jupytext
      status = jupytext(["--sync", "--pre-commit-mode", "test.py"])
  
      assert status != 0
      assert tmpdir.join("test.ipynb").exists()
  
      out = capsys.readouterr()
      assert "git add test.ipynb" 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 4 for calling a global function with example usage: test_alert_untracked_alerts_when_using_sync(tmpdir, cwd_tmpdir, tmp_repo, capsys) without return types