class_docstr: OneHotCategorical Distribution.
  
  Args:
      p(:class:`~chainer.Variable` or :ref:`ndarray`): Parameter of
          distribution.
code: def __init__(self, p):
      super(OneHotCategorical, self).__init__()
      self.__p = p
  
imports: import chainer
  from chainer.backends import cuda
  from chainer import distribution
  from chainer.functions.math import exponential
  import chainer.functions.math.sum
  from chainer.utils import cache
label_desc: Use image node_id 1 to create a new OneHotCategorical object from inherited base classes: distribution with example: obj = OneHotCategorical(p)