class_docstr: EXPERIMENTAL :class:`~pyro.distributions.Binomial` distribution extended to
  have logical support the entire integers and to allow arbitrary integer
  ``total_count``. Numerical support is still the integer interval ``[0,
  total_count]``.
code: def log_prob(self, value):
      result = super().log_prob(value)
      invalid = (value < 0) | (value > self.total_count)
      return result.masked_fill(invalid, -math.inf)
  
file_path: pyro/pyro/distributions/extended.py
imports: import math
  from pyro.distributions import constraints
  from .conjugate import BetaBinomial
  from .torch import Binomial
label_desc: Use image node_id 1 for calling the ExtendedBinomial obj's underlying member method code with example usage: obj.log_prob(value) and returns: result