code: def test_untracked_newly_added_files(M, tmp_dir, dvc, scm):
      tmp_dir.gen({"dir": {"foo": "foo", "bar": "bar"}})
      tmp_dir.gen("foobar", "foobar")
  
      expected = {
          **EMPTY_STATUS,
          "untracked": M.unordered(
              join("dir", "foo"), join("dir", "bar"), "foobar"
          ),
          "git": M.dict(),
      }
      assert dvc.data_status(untracked_files="all") == expected
      assert (
          dvc.data_status(granular=True, untracked_files="all")
          == expected
      )
  
imports: from os import fspath
  from os.path import join
  import pytest
  from dvc.repo import Repo
  from dvc.repo.data import _transform_git_paths_to_dvc, posixpath_to_os_path
  from dvc.testing.tmp_dir import make_subrepo
  from dvc.utils.fs import remove
label_desc: Use image node_id 12 for calling a global function with example usage: test_untracked_newly_added_files(M, tmp_dir, dvc, scm) without return types