code: def test_dequantize(
      num_elems, num_groups, is_symmetric_quant, q_bits
  ):
      activations = torch.randn(
          (num_groups, num_elems), dtype=torch.float16, device="cuda"
      )
      quantized_data, params = run_quantize(
          activations, num_groups, q_bits, is_symmetric_quant
      )
  
      ds_dequant = run_dequantize(
          quantized_data, params, num_groups, q_bits, is_symmetric_quant
      )
      ref_dequant = run_ref_dequantize(
          quantized_data, params, num_groups, q_bits, is_symmetric_quant
      )
  
      assert torch.allclose(
          ds_dequant.flatten(),
          ref_dequant.flatten(),
          rtol=3e-2,
          atol=2e-3,
      )
  
imports: import pytest
  import torch
  from deepspeed.ops import op_builder
label_desc: Use image node_id 5 for calling a global function with example usage: test_dequantize(num_elems, num_groups, is_symmetric_quant, q_bits) without return types