code: def vonmises(mu, kappa, size=None, dtype=float):
      """von Mises distribution.
  
      Returns an array of samples drawn from the von Mises distribution. Its
      probability density function is defined as
  
      .. math::
         f(x) = \\frac{e^{\\kappa \\cos(x-\\mu)}}{2\\pi I_0(\\kappa)}.
  
      Args:
          mu (float): Parameter of the von Mises distribution :math:`\\mu`.
          kappa (float): Parameter of the von Mises distribution :math:`\\kappa`.
          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 von Mises distribution.
  
      .. seealso::
          :func:`numpy.random.vonmises`
      """
      rs = _generator.get_random_state()
      return rs.vonmises(mu, kappa, size=size, dtype=dtype)
  
imports: from cupy.random import _generator
  from cupy import _util
label_desc: Use image node_id 31 for calling a global function with example usage: vonmises(mu, kappa, size, dtype) and returns: rs