Opens a dataset stored in a given path.

This is a hepler funciton to open PickleDataset. It opens a given file in binary mode, and creates a PickleDataset instance.

This method does not close the opened file. A user needs to call PickleDataset.close() or use with:

with chainer.datasets.open_pickle_dataset('path') as dataset:
    pass  # use dataset
Parameters:path (str) – Path to a dataset.
Returns:Opened dataset.
Return type:chainer.datasets.PickleDataset