code: def get_pad_tuple3d(padding, kernel):
      """Common code to get the pad option
  
      Parameters
      ----------
      padding : int or str
          Padding size, or ['VALID', 'SAME']
  
      kernel : tuple of int
          Conv kernel size
  
      Returns
      -------
      pad_front : int
          Padding size on front.
  
      pad_top : int
          Padding size on top
  
      pad_left : int
          Padding size on left
  
      pad_back : int
          Padding size on back.
  
      pad_down : int
          Padding size on down.
  
      pad_right : int
          Padding size on right.
      """
      # compute the padding size
      if isinstance(padding, (tuple, list)):
          if len(padding) == 3:
              pad_d = padding[0] * 2
              pad_h = padding[1] * 2
              pad_w = padding[2] * 2
          elif len(padding) == 6:
              return (
                  padding[0],
                  padding[1],
                  padding[2],
                  padding[3],
                  padding[4],
                  padding[5],
              )
          else:
              raise ValueError("Size of padding can only be 3 or 6")
      elif isinstance(padding, int):
          pad_d = pad_w = pad_h = padding * 2
      elif padding == "VALID":
          pad_h = 0
          pad_w = 0
          pad_d = 0
      elif padding == "SAME":
          pad_d = kernel[0] - 1
          pad_h = kernel[1] - 1
          pad_w = kernel[2] - 1
      else:
          raise ValueError(f"Unknown padding option {padding}")
      pad_top = (pad_h + 1) // 2
      pad_left = (pad_w + 1) // 2
      pad_front = (pad_d + 1) // 2
      return (
          pad_front,
          pad_top,
          pad_left,
          pad_d - pad_front,
          pad_h - pad_top,
          pad_w - pad_left,
      )
  
file_path: tvm/python/tvm/topi/nn/utils.py
imports: from __future__ import absolute_import
  import tvm
  from ..utils import get_const_int
label_desc: Use image node_id 6 for calling a global function with example usage: get_pad_tuple3d(padding, kernel) and returns: pad_front,  pad_top,  pad_left,  unknown,  unknown,  unknown, padding,  padding,  padding,  padding,  padding,  padding