@plug.handler()
def get_chunk(metadata, offset, size):
    try:
        with open(metadata.path, 'rb') as f:
            f.seek(offset)
            return f.read(size)
    except (IOError, __HOLE__) as e:
        raise ServiceError(
            u"Error getting file '{}': {}".format(metadata.path, e)
        )
dataset/ETHPy150Open onitu/onitu/drivers/local_storage/onitu_local_storage/local_storage.py/get_chunk