code: def lognormal(mean=0.0, sigma=1.0, size=None, dtype=float):
      """Returns an array of samples drawn from a log normal distribution.
  
      The samples are natural log of samples drawn from a normal distribution
      with mean ``mean`` and deviation ``sigma``.
  
      Args:
          mean (float): Mean of the normal distribution.
          sigma (float): Standard deviation of the normal distribution.
          size (int or tuple of ints): The shape of the array. If ``None``, a
              zero-dimensional array is generated.
          dtype: Data type specifier. Only :class:`numpy.float32` and
              :class:`numpy.float64` types are allowed.
  
      Returns:
          cupy.ndarray: Samples drawn from the log normal distribution.
  
      .. seealso:: :func:`numpy.random.lognormal`
  
      """
      rs = _generator.get_random_state()
      return rs.lognormal(mean, sigma, size=size, dtype=dtype)
  
imports: from cupy.random import _generator
  from cupy import _util
label_desc: Use image node_id 13 for calling a global function with example usage: lognormal(mean, sigma, size, dtype) and returns: rs