#NEWLINE# @ util . deprecated #NEWLINE# def validate_package_config( config , adapter_id , whole_check = False , **kwargs ) : #NEWLINE# #INDENT# 'Validate package config.' #NEWLINE# load_metadatas ( ) #NEWLINE# if ( adapter_id not in PACKAGE_METADATA_MAPPING ) : #NEWLINE# #INDENT# raise exception . InvalidParameter ( ( 'adapter %s is not found in package metedata mapping' % adapter_id ) ) #NEWLINE# #UNINDENT# _validate_config ( '' , config , PACKAGE_METADATA_MAPPING [ adapter_id ] , whole_check , ** kwargs )