code: def test_ls_repo_with_path_dir_dvc_only_empty(tmp_dir, dvc, scm):
      tmp_dir.scm_gen(FS_STRUCTURE, commit="init")
      tmp_dir.dvc_gen(DVC_STRUCTURE, commit="dvc")
      tmp_dir.scm_gen({"folder/.keep": "content"}, commit="add .keep")
      tmp_dir.scm_gen({"empty_scm_folder/": {}}, commit="add scm empty")
      tmp_dir.dvc_gen(
          {"empty_dvc_folder": {}}, commit="empty dvc folder"
      )
  
      with pytest.raises(FileNotFoundError):
          Repo.ls(os.fspath(tmp_dir), path="not_exist_folder")
  
      assert Repo.ls(os.fspath(tmp_dir), path="empty_scm_folder") == []
  
      assert (
          Repo.ls(os.fspath(tmp_dir), path="folder", dvc_only=True)
          == []
      )
  
      assert (
          Repo.ls(
              os.fspath(tmp_dir), path="empty_dvc_folder", dvc_only=True
          )
          == []
      )
  
imports: import os
  import shutil
  import textwrap
  from operator import itemgetter
  import pytest
  from dvc.repo import Repo
  from dvc.scm import CloneError
label_desc: Use image node_id 8 for calling a global function with example usage: test_ls_repo_with_path_dir_dvc_only_empty(tmp_dir, dvc, scm) without return types