code: def get_same_padding(
      kernel_size: Union[int, tuple[int, ...]]
  ) -> Union[int, tuple[int, ...]]:
      if isinstance(kernel_size, (tuple,)):
          return tuple([get_same_padding(ks) for ks in kernel_size])  # type: ignore
  
      # assert kernel_size % 2 > 0, "kernel size should be odd number"
      return kernel_size // 2
  
imports: from __future__ import annotations
  from inspect import signature
  from typing import Any, Union
label_desc: Use image node_id 1 for calling a global function with example usage: get_same_padding(kernel_size) and returns: unknown, tuple