code: def dropout(input_tensor, dropout_prob):
      """Perform dropout.
  
      Args:
        input_tensor: float Tensor.
        dropout_prob: Python float. The probability of dropping out a value (NOT of
          *keeping* a dimension as in `tf.nn.dropout`).
  
      Returns:
        A version of `input_tensor` with dropout applied.
      """
      if dropout_prob is None or dropout_prob == 0.0:
          return input_tensor
  
      output = tf.nn.dropout(input_tensor, rate=dropout_prob)
      return output
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import copy
  import json
  import math
  import re
  import numpy
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: dropout(input_tensor, dropout_prob) and returns: output, input_tensor