class_docstr: A Zero Inflated Poisson distribution.
  
  :param torch.Tensor gate: probability of extra zeros.
  :param torch.Tensor rate: rate of poisson distribution.
code: def __init__(self, gate, rate, validate_args=None):
      base_dist = Poisson(rate=rate, validate_args=False)
      base_dist._validate_args = validate_args
  
      super().__init__(gate, base_dist, validate_args=validate_args)
  
imports: import torch
  from torch.distributions import constraints, NegativeBinomial, Poisson, Distribution
  from torch.distributions.utils import broadcast_all, lazy_property
  from .utils import broadcast_shape
label_desc: Use image node_id 1 to create a new ZeroInflatedPoisson object from inherited base classes: ZeroInflatedDistribution with example: obj = ZeroInflatedPoisson(gate, rate, validate_args)