chainer.dataset.cache_or_load_file(path, creator, loader)[source]
This is a utility function used in dataset loading routines. The creator creates the file to given path, and returns the content. If the file already exists, the loader is called instead, and it loads the file and returns the content.