def get(self, context, image_id, data):
        try:
            client = self._get_client(context)
            image_meta, image_chunks = client.get_image(image_id)
        except glance_exception.NotFound:
            raise exception.ImageNotFound(image_id=image_id)

        for chunk in image_chunks:
            data.write(chunk)

        base_image_meta = self._translate_to_base(image_meta)
        return base_image_meta
Calls out to Glance for metadata and data and writes data.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/image/glance.py/GlanceImageService.get