@staticmethod
    def _is_image_available(context, image_meta):
        if hasattr(context, 'auth_token') and context.auth_token:
            return True
        return service.BaseImageService._is_image_available(context,
                                                            image_meta)


# utility functions
Copied from `IPython/terminal/embed.py`, but using our `InteractiveShellEmbed` instead.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/image/glance.py/GlanceImageService._is_image_available--crossover with--dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/ipython.py/embed