'Returns a tuple of (session, image_id). If the supplied `id_or_uri`
is an image ID, then the default client session will be returned
for the context\'s user, along with the image ID. If the supplied
`id_or_uri` parameter is a URI, then a client session connecting to
the URI\'s image service endpoint will be returned along with a
parsed image ID from that URI.
:param context: The `nova.context.Context` object for the request
:param id_or_uri: A UUID identifier or an image URI to look up image
information for.'

def _get_session_and_image_id(self, context, id_or_uri):

    return glance.get_remote_image_service(context, id_or_uri)
