def _get_flavor_metadata_ui_converter(flavor_id):
    load_metadatas()
    if flavor_id not in FLAVOR_METADATA_UI_CONVERTERS:
        raise exception.RecordNotExists(
            'flavor %s does not exist' % flavor_id
        )
    return FLAVOR_METADATA_UI_CONVERTERS[flavor_id]
get flavor metadata ui converter.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/metadata_holder.py/_get_flavor_metadata_ui_converter