code: def rand_gumbel_like(x):
      g = rand_gumbel(x.size()).to(dtype=x.dtype, device=x.device)
      return g
  
imports: import math
  import numpy
  import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 7 for calling a global function with example usage: rand_gumbel_like(x) and returns: g