code: def check_dtype(f_name, t, dtype, *additional_dtypes):
      check(
          t.dtype == dtype
          and t.dtype
          in (
              (torch.half, torch.bfloat16, torch.float)
              + tuple(*additional_dtypes)
          ),
          f"{f_name}(): all inputs are expected to be of the same dtype "
          f"and one of (half, bfloat16, float32) or {additional_dtypes}, "
          f"but got dtype == {t.dtype}.",
      )
  
imports: import math
  import os
  import torch
  import weakref
  from functools import lru_cache
  from torch.utils._triton import has_triton
  from ._triton_ops_meta import get_meta
  from typing import Optional, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: check_dtype(f_name, t, dtype) without return types