code: def convert_pad_shape(pad_shape):
      l = pad_shape[::-1]
      pad_shape = [item for sublist in l for item in sublist]
      return pad_shape
  
imports: import math
  import numpy
  import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 3 for calling a global function with example usage: convert_pad_shape(pad_shape) and returns: pad_shape