code: def gumbel(loc=0.0, scale=1.0, size=None, ctx=None, out=None):
      r"""Draw samples from a Gumbel distribution.
  
      Parameters
      ----------
      loc : float or array_like of floats, optional
          The location of the mode of the distribution. Default is 0.
      scale : float or array_like of floats, optional
          The scale parameter of the distribution. Default is 1. Must be non-
          negative.
      size : int or tuple of ints, optional
          Output shape.  If the given shape is, e.g., ``(m, n, k)``, then
          ``m * n * k`` samples are drawn.  If size is ``None`` (default),
          a single value is returned if ``loc`` and ``scale`` are both scalars.
          Otherwise, ``np.broadcast(loc, scale).size`` samples are drawn.
      ctx : Context, optional
          Device context of output. Default is current context.
  
      Returns
      -------
      out : _Symbol (symbol representing `mxnet.numpy.ndarray` in computational graphs)
          Drawn samples from the parameterized gumbel distribution.
      """
      from ._symbol import _Symbol as np_symbol
  
      input_type = (
          isinstance(loc, np_symbol),
          isinstance(scale, np_symbol),
      )
      if ctx is None:
          ctx = current_context()
      if size == ():
          size = None
      if input_type == (True, True):
          return _npi.gumbel(
              loc,
              scale,
              loc=None,
              scale=None,
              size=size,
              ctx=ctx,
              out=out,
          )
      elif input_type == (False, True):
          return _npi.gumbel(
              scale, loc=loc, scale=None, size=size, ctx=ctx, out=out
          )
      elif input_type == (True, False):
          return _npi.gumbel(
              loc, loc=None, scale=scale, size=size, ctx=ctx, out=out
          )
      else:
          return _npi.gumbel(
              loc=loc, scale=scale, size=size, ctx=ctx, out=out
          )
  
imports: import numpy
  from ...context import current_context
  from ...util import is_np_default_dtype
  from .None import _internal
label_desc: Use image node_id 7 for calling a global function with example usage: gumbel(loc, scale, size, ctx, out) and returns: _npi, _npi, _npi, _npi