code: def switch_on_quantization(do_quantization=True):
      """Context manager for quantization activation"""
      if do_quantization:
          initialize()
      try:
          yield
      finally:
          if do_quantization:
              deactivate()
  
file_path: DALI/docs/examples/use_cases/pytorch/efficientnet/image_classification/quantization.py
imports: from tqdm import tqdm
  import torch
  import contextlib
  import time
  import logging
  from pytorch_quantization import quant_modules
  from pytorch_quantization import nn
  from pytorch_quantization import calib
  from pytorch_quantization.tensor_quant import QuantDescriptor
  from .None import logger
  from .utils import calc_ips
  import dllogger
label_desc: Use image node_id 7 for calling a global function with example usage: switch_on_quantization(do_quantization) without return types