code: def load_object(filename):
      
      logging.info('loading {}...'.format(filename))
      try:
          with gzip.GzipFile(filename, 'rb') as f:
              buf = ''
              while True:
                  data = f.read()
                  if data == '':
                      break
                  buf += data
              return pickle.loads(buf)
      except Exception as e:
          logging.error('load failure: {}'.format(e))
          raise
docs: Unpickles and decompresses the given filename and returns the created object.