import tensorflow as tf

def false_positive_rate_at_true_positive_rate_loss(labels,
                                                   logits,
                                                   target_rate,
                                                   weights=1.0,
                                                   dual_rate_factor=0.1,
                                                   label_priors=None,
                                                   surrogate_type='xent',
                                                   lambdas_initializer=tf.constant_initializer(1.0),
                                                   reuse=None,
                                                   variables_collections=None,
                                                   trainable=True,
                                                   scope=None):
  """Computes false positive rate at true positive rate loss.
  Note that `true positive rate` is a synonym for Recall, and that minimizing
