code: def get_dtype_of_sequence(
      values: Sequence[Union[Tensor, float]]
  ) -> torch.dtype:
      """
      Return torch.float32 if everything is single-precision and torch.float64
      otherwise.
  
      Numbers (non-tensors) are double-precision.
      """
  
      def _is_single(value: Union[Tensor, float]) -> bool:
          return (
              isinstance(value, Tensor) and value.dtype == torch.float32
          )
  
      all_single_precision = all(_is_single(value) for value in values)
      return torch.float32 if all_single_precision else torch.float64
  
file_path: botorch/botorch/acquisition/fixed_feature.py
imports: from __future__ import annotations
  from numbers import Number
  from typing import List, Optional, Sequence, Union
  import torch
  from botorch.acquisition.acquisition import AcquisitionFunction
  from torch import Tensor
  from torch.nn import Module
label_desc: Use image node_id 1 for calling a global function with example usage: get_dtype_of_sequence(values) and returns: unknown, unknown