code: def get_pad_tuple2d(padding):
      """Common code to get the pad option
      Parameters
      ----------
      padding : Union[int, Tuple[int, ...]]
          Padding size
      Returns
      -------
      pad_top : int
          Padding size on top
      pad_left : int
          Padding size on left
      pad_down : int
          Padding size on down.
      pad_right : int
          Padding size on right.
      """
      # compute the padding size
      if isinstance(padding, container.Array):
          padding = list(padding)
      if isinstance(padding, (tuple, list)):
          if len(padding) == 2:
              pad_h = padding[0] * 2
              pad_w = padding[1] * 2
          elif len(padding) == 4:
              return padding[0], padding[1], padding[2], padding[3]
          else:
              raise ValueError("Size of padding can only be 2 or 4")
      elif isinstance(padding, int):
          pad_h = pad_w = padding * 2
      else:
          raise ValueError(f"Unknown padding option {padding}")
      pad_top = (pad_h + 1) // 2
      pad_left = (pad_w + 1) // 2
      return pad_top, pad_left, pad_h - pad_top, pad_w - pad_left
  
imports: from tvm.ir import container
label_desc: Use image node_id 2 for calling a global function with example usage: get_pad_tuple2d(padding) and returns: pad_top,  pad_left,  unknown,  unknown, padding,  padding,  padding,  padding