#NEWLINE# def get_image_metadata( self , image ) : #NEWLINE# #INDENT# "Return a dictionary of metadata for an image\n\n        :param image: Either the ID of an image or a\n                       :class:`~openstack.compute.v2.image.Image` or\n                       :class:`~openstack.compute.v2.image.ImageDetail`\n                       instance.\n\n        :returns: A :class:`~openstack.compute.v2.image.Image` with only the\n                  image's metadata. All keys and values are Unicode text.\n        :rtype: :class:`~openstack.compute.v2.image.Image`\n        " #NEWLINE# res = self . _get_base_resource ( image , _image . Image ) #NEWLINE# metadata = res . get_metadata ( self . session ) #NEWLINE# result = _image . Image . existing ( id = self . id , metadata = metadata ) #NEWLINE# return result