class_docstr: Cache the distillation labels on disk.
  Under each label will be saved as a file named `{uid}.pkl` under `cache_folder`.
class_docstr_tok: ["Cache","the","distillation","labels","on","disk",".","Under","each","label","will","be","saved","as","a","file","named","`","{","uid","}",".pkl","`","under","`","cache_folder","`","."]
code: def __init__(self, cache_folder: str | PathLike):
      self._cache_folder = Path(cache_folder).absolute()
      self._data_folder = self._cache_folder / "data"
      self._data_folder.mkdir(parents=True, exist_ok=True)
      self._uid2filename: Dict[str, str] = {}
  
imports: from __future__ import annotations
  import logging
  import os
  from os import PathLike
  from pathlib import Path
  import shutil
  import tempfile
  from typing import Any, Dict, List, Literal
  import json_tricks
  from .utils import pickle_dump, pickle_load
label_desc: Use image node_id 1 to create a new FileStorage object from inherited base classes: _DistilStorage with example: obj = FileStorage(cache_folder)