code: def get_bits_length(config, quant_type):
      if isinstance(config["quant_bits"], int):
          return config["quant_bits"]
      else:
          return config["quant_bits"].get(quant_type)
  
file_path: nni/nni/compression/utils/quantization/utils.py
imports: import torch
  from nni.common.version import TORCH_VERSION
  from .literal import QuantDtype, QuantScheme, QuantType
label_desc: Use image node_id 2 for calling a global function with example usage: get_bits_length(config, quant_type) and returns: config, config