code: def get_q_props(q_bits):
      q_range = 2**q_bits
      q_min = -(2 ** (q_bits - 1))
      q_max = 2 ** (q_bits - 1) - 1
  
      q_min = torch.IntTensor([q_min]).to(
          device=get_accelerator().device_name()
      )
      q_max = torch.IntTensor([q_max]).to(
          device=get_accelerator().device_name()
      )
      return q_range, q_max, q_min
  
file_path: DeepSpeed/tests/unit/ops/quantizer/test_quantize.py
imports: import pytest
  import torch
  import deepspeed
  from deepspeed.ops.op_builder import QuantizerBuilder
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 3 for calling a global function with example usage: get_q_props(q_bits) and returns: q_range,  q_max,  q_min