class_docstr: DEPRECATED - USE CachedCholeskyMCSamplerMixin instead.
docstr: Set class attributes and perform compatibility checks.
  
  Args:
      model: A model.
      cache_root: A boolean indicating whether to cache the Cholesky.
          This might be overridden in the model is not compatible.
docstr_tok: ["Set","class","attributes","and","perform","compatibility","checks",".","Args",":","model",":","A","model",".","cache_root",":","A","boolean","indicating","whether","to","cache","the","Cholesky",".","This","might","be","overridden","in","the","model","is","not","compatible","."]
code: def _setup(
      self,
      model: Model,
      cache_root: bool = False,
  ) -> None:
      r"""Set class attributes and perform compatibility checks.
  
      Args:
          model: A model.
          cache_root: A boolean indicating whether to cache the Cholesky.
              This might be overridden in the model is not compatible.
      """
      warnings.warn(
          "`CachedCholeskyMCAcquisitionFunction` is deprecated. Please switch to "
          "`CachedCholeskyMCSamplerMixin` and replace any calls to _setup with the "
          "constructor of the Mixin class.",
          DeprecationWarning,
      )
      super().__init__(
          model=model, cache_root=cache_root, sampler=self.sampler
      )
  
imports: from __future__ import annotations
  import warnings
  from typing import Optional
  import torch
  from botorch.acquisition.acquisition import MCSamplerMixin
  from botorch.exceptions.warnings import BotorchWarning
  from botorch.models.gpytorch import GPyTorchModel
  from botorch.models.higher_order_gp import HigherOrderGP
  from botorch.models.model import Model
  from botorch.models.model_list_gp_regression import ModelListGP
  from botorch.models.multitask import KroneckerMultiTaskGP, MultiTaskGP
  from botorch.posteriors.gpytorch import GPyTorchPosterior
  from botorch.posteriors.posterior import Posterior
  from botorch.sampling.base import MCSampler
  from botorch.utils.low_rank import extract_batch_covar, sample_cached_cholesky
  from gpytorch.distributions.multitask_multivariate_normal import MultitaskMultivariateNormal
  from linear_operator.utils.errors import NanError, NotPSDError
  from torch import Tensor
label_desc: Use image node_id 1 for calling the CachedCholeskyMCAcquisitionFunction obj's underlying member method code with example usage: obj._setup(model, cache_root) without return types