code: def test_unchanged(M, tmp_dir, dvc, scm):
      tmp_dir.dvc_gen({"dir": {"foo": "foo"}}, commit="add dir")
      tmp_dir.dvc_gen("bar", "bar", commit="add foo")
  
      assert dvc.data_status() == {
          **EMPTY_STATUS,
          "git": M.dict(),
          "unchanged": M.unordered("bar", join("dir", "")),
      }
      assert dvc.data_status(granular=True) == {
          **EMPTY_STATUS,
          "git": M.dict(),
          "unchanged": M.unordered(
              "bar", join("dir", ""), join("dir", "foo")
          ),
      }
  
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 7 for calling a global function with example usage: test_unchanged(M, tmp_dir, dvc, scm) without return types