code: def test_untracked_annex_query(path=None):
      # test for #7032
      ds = Dataset(path).create()
      (ds.pathobj / "untracked_file.txt").write_text("dummy")
      res = ds.status(annex="basic", path="untracked_file.txt")
      assert_not_in_results(
          res,
          error_message="File unknown to git",
      )
  
file_path: datalad/datalad/core/local/tests/test_status.py
imports: import os.path
  import datalad.utils
  from datalad.api import status
  from datalad.core.local.status import get_paths_by_ds
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError, IncompleteResultsError, NoDatasetFound
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, SkipTest, assert_dict_equal, assert_in, assert_in_results, assert_not_in_results, assert_raises, assert_repo_status, assert_result_count, assert_status, eq_, get_deeply_nested_structure, has_symlink_capability, with_tempfile
  from datalad.utils import chpwd, on_windows
label_desc: Use image node_id 5 for calling a global function with example usage: test_untracked_annex_query(path) without return types