code: def qat_mode(m):
      if isinstance(m, TensorQuantizer):
          m.enable()
          m.enable_quant()
          m.disable_calib()
          m.enable_clip()
  
imports: import math
  import logging
  import torch
  from torch import nn
  from csrc.pytorch.pytorch_quantization.tensor_quant import QuantDescriptor, tensor_quant, fake_tensor_quant
  from csrc.pytorch.pytorch_quantization.nn.modules.clip import Clip
  from csrc.pytorch.pytorch_quantization import calib
  import csrc.pytorch.pytorch_quantization.utils
label_desc: Use image node_id 3 for calling a global function with example usage: qat_mode(m) without return types