code: def image_meta_set(self,
                         image_id=None,
                         name=None,
                         **kwargs):  # pylint: disable=C0103
          '''
          Set image metadata
          '''
          nt_ks = self.compute_conn
          if name:
              for image in nt_ks.images.list():
                  if image.name == name:
                      image_id = image.id  # pylint: disable=C0103
          if not image_id:
              return {'Error': 'A valid image name or id was not specified'}
          nt_ks.images.set_meta(image_id, kwargs)
          return {image_id: kwargsf image_meta_set(self,
                         image_id=None,
                         name=None,
                         **kwargs):  # pylint: disable=C0103
          '''
          Set image metadata
          '''
          nt_ks = self.compute_conn
          if name:
              for image in nt_ks.images.list():
                  if image.name == name:
                      image_id = image.id  # pylint: disable=C0103
          if not image_id:
              return {'Error': 'A valid image name or id was not specified'}
          nt_ks.images.set_meta(image_id, kwargs)
          return {image_id: kwargs}
docs: Set image metadata