code: def _quantize_dynamic(model_path: str) -> str:
      model_path = Path(model_path)
      model_quant = model_path.parent.parent / "int8_dynamic"
      model_quant.mkdir(parents=True, exist_ok=True)
      model_quant = model_quant / (model_path.stem + ".quant.onnx")
      quantize_dynamic(
          model_path,
          model_quant,
          weight_type=QuantType.QUInt8,
          optimize_model=False,
      )
      return str(model_quant)
  
file_path: nebuly/optimization/nebullvm/nebullvm/operations/optimizations/compilers/quantizations/onnx.py
imports: from pathlib import Path
  from typing import Union, Iterable, Tuple, List
  import cpuinfo
  import numpy
  from nebullvm.core.models import QuantizationType, Device, DeviceType
  from nebullvm.optional_modules.onnx import onnx, convert_float_to_float16_model_path
  from nebullvm.optional_modules.onnxruntime import CalibrationDataReader, QuantType, quantize_dynamic, quantize_static
  from nebullvm.optional_modules.torch import DataLoader
  from nebullvm.tools.onnx import get_input_names
  from nebullvm.tools.transformations import MultiStageTransformation, HalfPrecisionTransformation
label_desc: Use image node_id 1 for calling a global function with example usage: _quantize_dynamic(model_path) and returns: str