def register(ext_id, name, display_admin=False, superuser=False, version=None):
    if ext_id in extensions.keys():
        raise ExtensionExists(
            'An extension with ID %s has already been registered.' % ext_id
        )

    extensions[ext_id] = {
        'ext_id': ext_id,
        'name': name,
        'version': version,
        'display_admin': display_admin,
        'superuser': superuser,
        'index_url': ext_id + ':index'
    }
Store the image data and return the new image id.
dataset/ETHPy150Open ExCiteS/geokey/geokey/extensions/base.py/register--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/image/glance.py/GlanceImageService.create