class_docstr: Pairwise likelihood base class for pairwise preference GP (e.g., PairwiseGP).
  
  :meta private:
docstr: Initialized like a `gpytorch.likelihoods.Likelihood`.
  
  Args:
      max_plate_nesting: Defaults to 1.
docstr_tok: ["Initialized","like","a","`","gpytorch.likelihoods.Likelihood","`",".","Args",":","max_plate_nesting",":","Defaults","to","1","."]
code: def __init__(self, max_plate_nesting: int = 1):
      """
      Initialized like a `gpytorch.likelihoods.Likelihood`.
  
      Args:
          max_plate_nesting: Defaults to 1.
      """
      super().__init__(max_plate_nesting)
  
imports: from __future__ import annotations
  import math
  from abc import ABC, abstractmethod
  from typing import Any, Tuple
  import torch
  from botorch.utils.probability.utils import log_ndtr, log_phi, standard_normal_log_hazard
  from gpytorch.likelihoods import Likelihood
  from torch import Tensor
  from torch.distributions import Bernoulli
label_desc: Use image node_id 1 to create a new PairwiseLikelihood object from inherited base classes: Likelihood, ABC with example: obj = PairwiseLikelihood(max_plate_nesting)