code: def gumbel(loc=0.0, scale=1.0, size=None):
      u = ivy.random_uniform(
          low=0.0, high=1.0, shape=size, dtype="float64"
      )
      x = loc - scale * ivy.log(-ivy.log(u))
      return x
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy import with_supported_dtypes
label_desc: Use image node_id 10 for calling a global function with example usage: gumbel(loc, scale, size) and returns: x