code: def validate_device_type(device_type: str) -> None:
      if device_type not in SUPPORTED_DEVICE_TYPE_TO_KEY:
          raise ValueError(
              f"CustomOp.impl(device_types=[{device_type}, ...]): we only support device_type "
              f"in {SUPPORTED_DEVICE_TYPE_TO_KEY.keys()}."
          )
  
imports: import dataclasses
  import functools
  import inspect
  import sys
  import typing
  import weakref
  from torchgen.model import FunctionSchema, OperatorName, SchemaKind, BaseType, ListType, BaseTy
  import torch
  import torch._C
  import torch.library
  from torch._library.abstract_impl import AbstractImplCtx
  from torch.library import get_ctx
  from .autograd import autograd_kernel_indirection, construct_autograd_kernel
label_desc: Use image node_id 6 for calling a global function with example usage: validate_device_type(device_type) without return types