<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def interpolate_loss(labels, loss1, loss2, interpolation_values):
 """ Interpolate two losses linearly. :param interpolation_values: The values for each class how much focal loss should be interpolated in. :return: A tensor representing the weighted cross entropy. """

    with tf.variable_scope("interpolate_focus_loss"):
        # Select the probs or weights with the labels.
        t = tf.reduce_sum(labels * interpolation_values, axis=-1)
        return (1 - t) * loss1 + t * loss2