code: def dropout(tensor, drop_prob, is_training):
      """
      Dropout except test.
      """
      if not is_training:
          return tensor
      return tf.nn.dropout(tensor, 1.0 - drop_prob)
  
file_path: nni/examples/trials/ga_squad/util.py
imports: import time
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: dropout(tensor, drop_prob, is_training) and returns: tf, tensor