code: def sparse_dropout(x, keep_prob, noise_shape):
      """Dropout for sparse tensors."""
      random_tensor = keep_prob
      random_tensor += tf.random_uniform(noise_shape)
      dropout_mask = tf.cast(tf.floor(random_tensor), dtype=tf.bool)
      pre_out = tf.sparse_retain(x, dropout_mask)
      return pre_out * (1.0 / keep_prob)
  
file_path: OpenNE/src/openne/gcn/layers.py
imports: from .inits import *
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: sparse_dropout(x, keep_prob, noise_shape) and returns: unknown