call f.read function, use the result as the argument for zlib.decompress function call, call the pickle.loads function with the previous result as argument, return the result.
return pickle . loads ( zlib . decompress ( f . read ( ) ) )