Wrapper around cPickle.load which accepts either a file-like object or a filename.
F : str or file
The file or file name to load.
See also
Notes
This is different from numpy.load, which does not use cPickle but loads the NumPy binary .npy format.