code: def __init__(
      self,
      invlink: Callable[[tf.Tensor], tf.Tensor] = inv_probit,
      **kwargs: Any,
  ) -> None:
      super().__init__(**kwargs)
      self.invlink = invlink
  
imports: from typing import Any, Callable
  import numpy
  import tensorflow
  from check_shapes import check_shapes, inherit_check_shapes
  from ..None import logdensities
  from ..base import AnyNDArray, MeanAndVariance, Parameter, TensorType
  from ..config import default_float
  from ..utilities import positive, to_default_int
  from .base import ScalarLikelihood
  from .utils import inv_probit
label_desc: Use image node_id 1 to create a new Bernoulli object from inherited base classes: ScalarLikelihood with example: obj = Bernoulli(invlink)