parameters: (loc=0.0, scale=1.0, size=None, device=None, out=None)
return_statement: return _api_internal.gumbel(loc, scale, size, device, out)
docstring: r"""Draw samples from a Gumbel distribution.
  
      Draw samples from a Gumbel distribution with specified location and
      scale.
  
      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.
      device : Device, optional
          Device context of output. Default is current device.
      out : ``ndarray``, optional
          Store output to an existing ``ndarray``.
  
      Returns
      -------
      out : ndarray or scalar
          Drawn samples from the parameterized Gumbel distribution.
docstring_summary: r"""Draw samples from a Gumbel distribution.
docstring_tokens: r Draw samples from a Gumbel distribution .
function: def gumbel(loc=0.0, scale=1.0, size=None, device=None, out=None):
      r"""Draw samples from a Gumbel distribution.
  
      Draw samples from a Gumbel distribution with specified location and
      scale.
  
      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.
      device : Device, optional
          Device context of output. Default is current device.
      out : ``ndarray``, optional
          Store output to an existing ``ndarray``.
  
      Returns
      -------
      out : ndarray or scalar
          Drawn samples from the parameterized Gumbel distribution.
      """
      if device is None:
          device = str(current_device())
      else:
          device = str(device)
      if size == ():
          size = None
      return _api_internal.gumbel(loc, scale, size, device, out)
function_tokens: def gumbel ( loc = 0.0 , scale = 1.0 , size = None , device = None , out = None ) : if device is None : device = str ( current_device ( ) ) else : device = str ( device ) if size == ( ) : size = None return _api_internal . gumbel ( loc , scale , size , device , out )