code: def test_is_untracked(tmpdir, cwd_tmpdir, tmp_repo):
      # make a test file
      file = "test.txt"
      tmpdir.join(file).write("test file\n")
  
      # untracked
      assert is_untracked(file)
  
      # added, not committed
      tmp_repo.git.add(file)
      assert not is_untracked(file)
  
      # committed
      tmp_repo.index.commit("test")
      assert not is_untracked(file)
  
      # changed
      tmpdir.join(file).write("modified file\n")
      assert is_untracked(file)
  
      # added, not committed
      tmp_repo.git.add(file)
      assert not is_untracked(file)
  
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 1 for calling a global function with example usage: test_is_untracked(tmpdir, cwd_tmpdir, tmp_repo) without return types