Args:
cache_dir (`str` or `Path`, `optional`):
Cache directory to cache. Defaults to the default HF cache directory.

<Tip warning={true}>

Raises:

`CacheNotFound`
If the cache directory does not exist.

[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
If the cache directory is a file, instead of a directory.

</Tip>

Returns: a [`~HFCacheInfo`] object.
```