code: def set_with_mask(x, x_other, mask):
      """Helper function which returns a tensor similar to x with all the values
      of x replaced by x_other where the mask evaluates to true.
      """
      mask = tf.cast(mask, x.dtype)
      ones = tf.ones_like(mask, dtype=x.dtype)
      return x_other * mask + x * (ones - mask)
  
file_path: cleverhans/cleverhans/tf2/utils.py
imports: import numpy
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: set_with_mask(x, x_other, mask) and returns: unknown