code: def is_ensemble(model: Model) -> bool:
      r"""Check if at least one model is an ensemble model.
  
      Args:
          model: A BoTorch model (may be a `ModelList` or `ModelListGP`)
  
      Returns:
         True if at least one model is an ensemble model.
      """
      from botorch.models import ModelList
  
      if isinstance(model, ModelList):
          return any(is_ensemble(m) for m in model.models)
      return getattr(model, "_is_ensemble", False)
  
file_path: botorch/botorch/utils/transforms.py
imports: from __future__ import annotations
  import warnings
  from functools import wraps
  from typing import Any, Callable, List, Optional, TYPE_CHECKING
  import torch
  from botorch.utils.safe_math import logmeanexp
  from torch import Tensor
label_desc: Use image node_id 7 for calling a global function with example usage: is_ensemble(model) and returns: getattr, any