code: def check_dtype_float32_or_float64(X: Tensor) -> None:
      if X.dtype != torch.float32 and X.dtype != torch.float64:
          raise UnsupportedError(
              f"Only dtypes float32 and float64 are supported, but received {X.dtype}."
          )
  
imports: from __future__ import annotations
  import math
  from typing import Callable, Tuple, Union
  import torch
  from botorch.exceptions import UnsupportedError
  from botorch.utils.constants import get_constants_like
  from torch import finfo, Tensor
  from torch.nn.functional import softplus
label_desc: Use image node_id 19 for calling a global function with example usage: check_dtype_float32_or_float64(X) without return types