code: def setFormatMetadata(self, format):
      
      assert((self.needMetadataUpdate(CoverImageMetadata.FORMAT)) or
             (self.format is format))
      self.format = format
      self.check_metadata &= ~CoverImageMetadata.FORMAT
docs: Set format image metadata to what has been reliably identified.