code: def test_find_root_directory_no_revision(self):
      files = self.hffs.find(self.hf_path, detail=False)
      self.assertEqual(
          files,
          self.hffs.ls(self.hf_path, detail=False)[1:]
          + self.hffs.ls(self.hf_path + "/data", detail=False),
      )
  
      files = self.hffs.find(self.hf_path, detail=True)
      self.assertEqual(
          files,
          {
              f["name"]: f
              for f in self.hffs.ls(self.hf_path, detail=True)[1:]
              + self.hffs.ls(self.hf_path + "/data", detail=True)
          },
      )
  
      files_with_dirs = self.hffs.find(
          self.hf_path, withdirs=True, detail=False
      )
      self.assertEqual(
          files_with_dirs,
          sorted(
              [self.hf_path]
              + self.hffs.ls(self.hf_path, detail=False)
              + self.hffs.ls(self.hf_path + "/data", detail=False)
          ),
      )
  
imports: import datetime
  import unittest
  from typing import Optional
  from unittest.mock import patch
  import fsspec
  import pytest
  from huggingface_hub.hf_file_system import HfFileSystem
  from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
  from .testing_constants import ENDPOINT_STAGING, TOKEN
  from .testing_utils import repo_name
label_desc: Use image node_id 22 for calling the HfFileSystemTests obj's underlying member method code with example usage: obj.test_find_root_directory_no_revision() without return types