@util.deprecated
def _get_package_metadata(adapter_id):
    load_metadatas()
    if adapter_id not in PACKAGE_METADATA_MAPPING:
        raise exception.RecordNotExists(
            'adpater %s does not exist' % adapter_id
        )
    return _filter_metadata(
        PACKAGE_METADATA_MAPPING[adapter_id]
    )
get package metadata.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/metadata_holder.py/_get_package_metadata