code: def get_pad_tuple1d(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_left : int
          Padding size on left
  
      pad_right : int
          Padding size on right.
      """
      # compute the padding size
      if isinstance(padding, (tuple, list)):
          if len(padding) == 1:
              pad_w = padding[0] * 2
          elif len(padding) == 2:
              return padding[0], padding[1]
          else:
              raise ValueError("Size of padding can only be 2 or 4")
      elif isinstance(padding, int):
          pad_w = padding * 2
      elif padding == "VALID":
          pad_w = 0
      elif padding == "SAME":
          pad_w = kernel[0] - 1
      else:
          raise ValueError(f"Unknown padding option {padding}")
      pad_left = (pad_w + 1) // 2
      return pad_left, 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 7 for calling a global function with example usage: get_pad_tuple1d(padding, kernel) and returns: pad_left,  unknown, padding,  padding