code: def get_gaussian_likelihood_with_gamma_prior(
      batch_shape: Optional[torch.Size] = None,
  ) -> GaussianLikelihood:
      r"""Constructs the GaussianLikelihood that is used by default by
      several models. This uses a Gamma(1.1, 0.05) prior and constrains the
      noise level to be greater than MIN_INFERRED_NOISE_LEVEL (=1e-4).
      """
      batch_shape = torch.Size() if batch_shape is None else batch_shape
      noise_prior = GammaPrior(1.1, 0.05)
      noise_prior_mode = (
          noise_prior.concentration - 1
      ) / noise_prior.rate
      return GaussianLikelihood(
          noise_prior=noise_prior,
          batch_shape=batch_shape,
          noise_constraint=GreaterThan(
              MIN_INFERRED_NOISE_LEVEL,
              transform=None,
              initial_value=noise_prior_mode,
          ),
      )
  
file_path: botorch/botorch/models/utils/gpytorch_modules.py
imports: from typing import Optional
  import torch
  from gpytorch.constraints.constraints import GreaterThan
  from gpytorch.kernels import MaternKernel, ScaleKernel
  from gpytorch.likelihoods.gaussian_likelihood import GaussianLikelihood
  from gpytorch.priors.torch_priors import GammaPrior
label_desc: Use image node_id 2 for calling a global function with example usage: get_gaussian_likelihood_with_gamma_prior(batch_shape) and returns: GaussianLikelihood