docstr: In this likelihood, we assume at extra column of Y, which contains
  integers that specify a likelihood from the list of likelihoods.
docstr_tok: ["In","this","likelihood",",","we","assume","at","extra","column","of","Y",",","which","contains","integers","that","specify","a","likelihood","from","the","list","of","likelihoods","."]
code: def __init__(
      self, likelihood_list: Iterable[ScalarLikelihood], **kwargs: Any
  ) -> None:
      """
      In this likelihood, we assume at extra column of Y, which contains
      integers that specify a likelihood from the list of likelihoods.
      """
      super().__init__(**kwargs)
      self.likelihoods = list(likelihood_list)
  
imports: import abc
  from typing import Any, Callable, Iterable, Optional, Sequence, Union
  import tensorflow
  from check_shapes import check_shapes, inherit_check_shapes
  from ..base import MeanAndVariance, Module, TensorType
  from ..quadrature import GaussianQuadrature, NDiagGHQuadrature, ndiag_mc
label_desc: Use image node_id 1 to create a new SwitchedLikelihood object from inherited base classes: ScalarLikelihood with example: obj = SwitchedLikelihood(likelihood_list)