class_docstr: .. note:: `zoo.pipeline.api.onnx` is deprecated in 0.10.0
  This will be removed in future releases.
class_docstr_tok: ["..","note",":",":","`","zoo.pipeline.api.onnx","`","is","deprecated","in","0.10.0","This","will","be","removed","in","future","releases","."]
code: def get_padds(onnx_attr):
      warnings.warn(
          "deprecated in 0.10.0, and will be removed in future release"
      )
      border_mode = None
      pads = None
  
      if "auto_pad" in onnx_attr.keys():
          if onnx_attr["auto_pad"].decode() == "SAME_UPPER":
              border_mode = "same"
          elif onnx_attr["auto_pad"].decode() == "VALID":
              border_mode = "valid"
          elif onnx_attr["auto_pad"].decode() == "NOTSET":
              assert (
                  "pads" in onnx_attr.keys()
              ), "you should specify pads explicitly"
          else:
              raise NotImplementedError(
                  'Unknown auto_pad mode "%s", '
                  "only SAME_UPPER and VALID are supported."
                  % onnx_attr["auto_pad"]
              )
  
      # In ONNX, pads format is [x1_begin, x2_begin...x1_end, x2_end,...].
      # While pads format we supported should be [x1_begin, x1_end, x2_begin, x2_end...]
      if "pads" in onnx_attr.keys():
          pads = [int(i) for i in onnx_attr["pads"]]
          if len(pads) == 4:
              assert pads[0] == pads[2]
              assert pads[1] == pads[3]
              pads = [pads[0], pads[1]]
          elif len(pads) == 2:
              assert pads[0] == pads[1]
              pads = pads[0]
  
      return border_mode, pads
  
imports: import warnings
label_desc: Use image node_id 4 for calling the OnnxHelper obj's underlying member method code with example usage: obj.get_padds(onnx_attr) and returns: border_mode,  pads