code: def is_contiguous(indices: List[int]) -> bool:
      r"""Check if the list of integers is contiguous.
  
      Args:
          indices: A list of parameter indices.
      Returns:
          A boolean indicating whether the indices are contiguous.
      """
      min_idx = min(indices)
      return set(indices) == set(range(min_idx, min_idx + len(indices)))
  
imports: from typing import Any, Dict, List, Optional
  import torch
  from gpytorch.constraints import Positive
  from gpytorch.kernels.kernel import Kernel
  from gpytorch.kernels.matern_kernel import MaternKernel
  from gpytorch.priors.torch_priors import GammaPrior
  from linear_operator.operators import DiagLinearOperator
  from linear_operator.operators.dense_linear_operator import DenseLinearOperator
  from torch import Tensor
  from torch.nn import ModuleList
label_desc: Use image node_id 2 for calling a global function with example usage: is_contiguous(indices) and returns: unknown