code: def valid_config(config=None):
      """
      This function validates the bits setting configuration
      """
      if config is None:
          return
      support_bits = [8, 16, 32]
      for name in config.keys():
          if "weight_bits" in config[name]:
              w_bits = config[name]["weight_bits"]
              assert (
                  w_bits in support_bits
              ), "weight bits should be 8, 16, 32"
          if "output_bits" in config[name]:
              a_bits = config[name]["output_bits"]
              assert (
                  a_bits in support_bits
              ), "output bits should be 8, 16, 32"
  
imports: import time
  import logging
  import tensorrt
  import numpy
  import torch
  from .None import frontend_to_onnx
  from .None import trt_pycuda
  from .backend import BaseModelSpeedup
label_desc: Use image node_id 1 for calling a global function with example usage: valid_config(config) without return types