code: def get_matern_kernel_with_gamma_prior(
      ard_num_dims: int, batch_shape: Optional[torch.Size] = None
  ) -> ScaleKernel:
      r"""Constructs the Scale-Matern kernel that is used by default by
      several models. This uses a Gamma(3.0, 6.0) prior for the lengthscale
      and a Gamma(2.0, 0.15) prior for the output scale.
      """
      return ScaleKernel(
          base_kernel=MaternKernel(
              nu=2.5,
              ard_num_dims=ard_num_dims,
              batch_shape=batch_shape,
              lengthscale_prior=GammaPrior(3.0, 6.0),
          ),
          batch_shape=batch_shape,
          outputscale_prior=GammaPrior(2.0, 0.15),
      )
  
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 1 for calling a global function with example usage: get_matern_kernel_with_gamma_prior(ard_num_dims, batch_shape) and returns: ScaleKernel