code: def test_status_recursive(tmp_dir, dvc):
      tmp_dir.gen(
          {"dir": {"file": "text1", "subdir": {"file2": "text2"}}}
      )
      stages = dvc.add(localfs.find("dir"), no_commit=True)
  
      assert len(stages) == 2
  
      assert dvc.status(targets=["dir"], recursive=True) == {
          os.path.join("dir", "file.dvc"): [
              {
                  "changed outs": {
                      os.path.join("dir", "file"): "not in cache"
                  }
              }
          ],
          os.path.join("dir", "subdir", "file2.dvc"): [
              {
                  "changed outs": {
                      os.path.join(
                          "dir", "subdir", "file2"
                      ): "not in cache"
                  }
              }
          ],
      }
  
file_path: dvc/tests/func/test_status.py
imports: import os
  from dvc.cli import main
  from dvc.fs import localfs
label_desc: Use image node_id 6 for calling a global function with example usage: test_status_recursive(tmp_dir, dvc) without return types