code: def __init__(self, dim: int, n_trials: int) -> None:
      super().__init__(self)
      assert dim > 1, "Dimension must be larger than one."
      self.dim = dim
      self.n_trials = n_trials
      self.args_dim = {"alpha": dim}
      self.distr_cls = DirichletMultinomial
      self.dim = dim
      self.mask = None
  
imports: from typing import Optional, Tuple, Type
  import numpy
  from gluonts.core.component import validated
  from gluonts.mx import Tensor
  from gluonts.mx.util import make_nd_diag
  from .distribution import Distribution, _sample_multiple, getF
  from .distribution_output import DistributionOutput
label_desc: Use image node_id 1 to create a new DirichletMultinomialOutput object from inherited base classes: DistributionOutput with example: obj = DirichletMultinomialOutput(dim, n_trials)