code: def get_likelihood(likelihood_setup: LikelihoodSetup) -> Likelihood:
      if isinstance(likelihood_setup, type(pytest.param())):
          (likelihood_setup,) = likelihood_setup.values
      return likelihood_setup.likelihood
  
imports: from typing import Sequence, Tuple
  import numpy
  import pytest
  import tensorflow
  from numpy.testing import assert_allclose
  import gpflow
  import gpflow.ci_utils
  from gpflow.base import TensorType
  from gpflow.config import default_float, default_int
  from gpflow.likelihoods import HeteroskedasticTFPConditional, Likelihood, MonteCarloLikelihood, MultiLatentLikelihood, MultiLatentTFPConditional, QuadratureLikelihood, ScalarLikelihood, Bernoulli, Beta, Exponential, Gamma, Gaussian, GaussianMC, MultiClass, Ordinal, Poisson, StudentT
label_desc: Use image node_id 2 for calling a global function with example usage: get_likelihood(likelihood_setup) and returns: likelihood_setup