code: def test_bad_dtype() -> None:
      with pytest.raises(ValueError):
          CUDAGatedActivation(128, torch.int8, ActivationType.GEGLU)
  
file_path: DeepSpeed/tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py
imports: from typing import Iterable, Optional
  import pytest
  import torch
  from deepspeed.accelerator import get_accelerator
  from deepspeed.inference.v2.kernels.core_ops import CUDAGatedActivation
  from deepspeed.inference.v2.inference_utils import ActivationType
  from ....v2.inference_test_utils import get_dtypes, allclose
label_desc: Use image node_id 6 for calling a global function with example usage: test_bad_dtype() without return types