class_docstr: Simple hub download and run test.
code: def test_hubfiles(self):
      meta = [
          {
              "path": "README.md",
              "mode": "100644",
              "type": "blob",
              "size": 5310,
              "sha": "133cd84e7a4bf39b49ffb18f3f2628afe93dd5b4",
              "downloadLink": "https://towhee.io/api/v1/repos/image-embedding/isc/git/blobs/133cd84e7a4bf39b49ffb18f3f2628afe93dd5b4",
          },
          {
              "path": "benchmark",
              "mode": "040000",
              "type": "tree",
              "size": 0,
              "sha": "65c110ada6d3fb4e477cc57b67026e37a4499e39",
              "downloadLink": "https://towhee.io/api/v1/repos/image-embedding/isc/git/trees/65c110ada6d3fb4e477cc57b67026e37a4499e39",
          },
          {
              "path": "benchmark/qps_test.py",
              "mode": "100644",
              "type": "blob",
              "size": 3617,
              "sha": "2bc4af18560f0597d5efd037aef7111aba01d140",
              "downloadLink": "https://towhee.io/api/v1/repos/image-embedding/isc/git/blobs/2bc4af18560f0597d5efd037aef7111aba01d140",
          },
      ]
      with TemporaryDirectory(dir="./") as root:
          fs = _HubFiles(root, "v1-0.1", meta)
          tag_path = fs.get_tag_path()
          self.assertEqual(tag_path, repo_tag_path(root, "v1-0.1"))
          self.assertEqual(
              tag_path.absolute(),
              (Path(root) / "versions" / "v1_0_1").absolute(),
          )
          self.assertFalse(tag_path.is_dir())
          tag_path.mkdir(parents=True, exist_ok=True)
          self.assertTrue(tag_path.is_dir())
          self.assertEqual(
              tag_path.absolute(),
              (Path(root) / "versions" / "v1_0_1").absolute(),
          )
          self.assertEqual(
              fs.file_path, (Path(root) / "files").absolute()
          )
          self.assertTrue(fs.file_path.is_dir())
          self.assertIsNone(fs.requirements)
  
          meta.append(
              {
                  "path": "requirements.txt",
                  "mode": "100644",
                  "type": "blob",
                  "size": 3617,
                  "sha": "2bc4af18560f0597d5efd037aef7111aba01d140",
                  "downloadLink": "https://towhee.io/api/v1/repos/image-embedding/isc/git/blobs/2bc4af18560f0597d5efd037aef7111aba01d140",
              }
          )
          self.assertEqual(
              fs.requirements.absolute(),
              (
                  Path(root)
                  / "versions"
                  / "v1_0_1"
                  / "requirements.txt"
              ).absolute(),
          )
          fs.requirements.touch()
          self.assertIsNotNone(fs.requirements)
          self.assertEqual(len(fs.symlink_pair()), 3)
          self.assertEqual(len(fs.local_url_pair()), 3)
  
imports: import unittest
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from towhee.hub.downloader import _HubFiles, download_operator, repo_tag_path
label_desc: Use image node_id 1 for calling the TestDownloader obj's underlying member method code with example usage: obj.test_hubfiles() without return types