code: def calibration_gen():
      for i in range(300):
          image = x_train[i].reshape(batch_input_shape)
          yield [image]
  
imports: from __future__ import print_function
  import os
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import quantize
label_desc: Use image node_id 1 for calling a global function with example usage: calibration_gen() without return types