<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sample_prob(probs, rand):
 """Get samples from a tensor of probabilities. :param probs: tensor of probabilities :param rand: tensor (of the same shape as probs) of random values :return: binary sample of probabilities """

    return tf.nn.relu(tf.sign(probs - rand))