def _check_notification_opt_out(event_type, outcome):
 if ('authenticate' in event_type):
  event_type = ((event_type + '.') + outcome)
 if (event_type in CONF.notification_opt_out):
  return True
 return False

def _check_notification_opt_out ( event_type , outcome ) : if ( 'authenticate' in event_type ) : event_type = ( ( event_type + '.' ) + outcome ) if ( event_type in CONF . notification_opt_out ) : return True return False
check if a particular event_type has been opted-out of .