code: def random_dropout(embeddings, drop_rate):
      r"""
      Function to perform random dropout for embeddings.
      When we drop embeddings, we zero them out.
      Args:
          embeddings (tensor): Input embeddings
          drop_rate (float): Rate of dropping the embedding.
      """
      nsamples = embeddings.shape[0]
      zero_flag = torch.ones(nsamples, 1, 1).to(embeddings.dtype) * (
          1 - drop_rate
      )
      zero_flag = torch.bernoulli(zero_flag).cuda()
      embeddings = embeddings * zero_flag
      return embeddings
  
label_desc: Use image node_id 1 for calling a global function with example usage: random_dropout(embeddings, drop_rate) and returns: embeddings