code: def convert_onnx_pad_to_tf(pads):
      return (
          np.transpose(np.array(pads).reshape([2, -1]))
          .reshape(-1, 2)
          .tolist()
      )
  
file_path: MMdnn/mmdnn/conversion/common/utils.py
imports: from __future__ import division
  import os
  import sys
  import numpy
  from six import text_type, binary_type, integer_types
  import mmdnn.conversion.common.IR.graph_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: convert_onnx_pad_to_tf(pads) and returns: np