code: def _validate_input_dtype(
      input: Tensor, accepted_dtypes: List[torch.dtype]
  ) -> None:
      r"""Check if the dtype of the input tensor is in the range of accepted_dtypes
      Args:
          input: Tensor
          accepted_dtypes: List. e.g. [torch.float32, torch.float64]
      """
      if input.dtype not in accepted_dtypes:
          raise TypeError(
              f"Expected input of {accepted_dtypes}. Got {input.dtype}"
          )
  
imports: from functools import wraps
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  from torch.distributions import Beta, Uniform
  from kornia.core import Tensor, as_tensor
  from kornia.geometry.boxes import Boxes
  from kornia.geometry.keypoints import Keypoints
  from kornia.utils import _extract_device_dtype
label_desc: Use image node_id 7 for calling a global function with example usage: _validate_input_dtype(input, accepted_dtypes) without return types