def deprecated_conditional(predicate, removal_version, entity_description, hint_message=None, stacklevel=4):
 validate_removal_semver(removal_version)
 if predicate():
  warn_or_error(removal_version, entity_description, hint_message, stacklevel=stacklevel)

def deprecated_conditional ( predicate , removal_version , entity_description , hint_message = None , stacklevel = 4 ) : validate_removal_semver ( removal_version ) if predicate ( ) : warn_or_error ( removal_version , entity_description , hint_message , stacklevel = stacklevel )
marks a certain configuration as deprecated .