code: def _get_cache_root_not_supported_message(model_cls: type) -> str:
      msg = (
          "`cache_root` is only supported for GPyTorchModels that "
          "are not MultiTask models and don't produce a "
          f"TransformedPosterior. Got a model of type {model_cls}. Setting "
          "`cache_root = False`."
      )
      return msg
  
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 2 for calling a global function with example usage: _get_cache_root_not_supported_message(model_cls) and returns: msg