code: def quantize_with_scale_and_zero(data, scale, zero):
      np_data = np.array(data).astype(float)
      output = np.round(zero + np_data / scale).astype(np.int32)
      quantized_data = QuantizedData()
      quantized_data.data = output
      quantized_data.scale = scale
      quantized_data.zero = zero
      return quantized_data
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import math
  from transform.base_converter import DeviceType
label_desc: Use image node_id 6 for calling a global function with example usage: quantize_with_scale_and_zero(data, scale, zero) and returns: quantized_data