code: def test_empty_dir(tmp_dir, scm, dvc, M):
      # regression testing for https://github.com/iterative/dvc/issues/8958
      tmp_dir.dvc_gen({"data": {"foo": "foo"}})
      remove("data")
  
      (tmp_dir / "data").mkdir()
  
      assert dvc.data_status() == {
          **EMPTY_STATUS,
          "committed": {"added": [join("data", "")]},
          "uncommitted": {"modified": [join("data", "")]},
          "git": M.dict(),
      }
  
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 23 for calling a global function with example usage: test_empty_dir(tmp_dir, scm, dvc, M) without return types