code: def test_ls_remote_repo_with_rev(erepo_dir):
      with erepo_dir.chdir():
          erepo_dir.scm_gen(FS_STRUCTURE, commit="init")
          erepo_dir.dvc_gen(DVC_STRUCTURE, commit="dvc")
  
      rev = erepo_dir.scm.list_all_commits()[1]
      url = f"file://{erepo_dir.as_posix()}"
      files = Repo.ls(url, rev=rev)
      match_files(
          files,
          (
              ((".dvcignore",), False),
              ((".gitignore",), False),
              (("README.md",), False),
              (("model",), False),
          ),
      )
  
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 25 for calling a global function with example usage: test_ls_remote_repo_with_rev(erepo_dir) without return types