code: def quantize_per_tensor(
      g: jit_utils.GraphContext, input, scale, zero_point, dtype
  ):
      kwargs = {
          "Y_scale_f": scale,
          "Y_zero_point_i": zero_point,
      }
      output = g.op("_caffe2::Int8Quantize", input, **kwargs)
      symbolic_helper._quantized_ops.add(output)
      return output
  
imports: import importlib
  import inspect
  from torch.onnx import symbolic_helper, symbolic_opset9
  from torch.onnx._internal import jit_utils, registration
label_desc: Use image node_id 12 for calling a global function with example usage: quantize_per_tensor(g, input, scale, zero_point, dtype) and returns: output