code: def _same_pad_arg(input_size, kernel_size, stride, dilation):
      ih, iw = input_size
      kh, kw = kernel_size
      pad_h = _calc_same_pad(ih, kh, stride[0], dilation[0])
      pad_w = _calc_same_pad(iw, kw, stride[1], dilation[1])
      return [
          pad_w // 2,
          pad_w - pad_w // 2,
          pad_h // 2,
          pad_h - pad_h // 2,
      ]
  
imports: import collections.abc
  import math
  from functools import partial
  from itertools import repeat
  from typing import Tuple, Optional
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from .config import *
label_desc: Use image node_id 5 for calling a global function with example usage: _same_pad_arg(input_size, kernel_size, stride, dilation) and returns: list