code: def check_padding(pads, dim, padval):
      
      asymmetry = False
      for i in range(dim):
          s = pads[i]
          e = pads[i+dim]
          if s == e:
              padval.append(s)
          else:
              asymmetry = True
              # We must add a separate pad function for asymmetry padding.
              # Since the pad function will do all the padding,
              # we will remove all padding here.
              del padval[:]
              padval.extend([0]*dim)
              break
      return asymmetry
docs: Check each padding start/end value
      and set the sufficient pad value.
      If we have asymmetry padding, we will return
      True to indicate the need for a separate padding function