code: def get_same_padding(kernel_size, stride, dilation) -> int:
      if stride > 1 and dilation > 1:
          raise ValueError(
              "Only stride OR dilation may be greater than 1"
          )
      return (dilation * (kernel_size - 1)) // 2
  
imports: import math
  from typing import Callable, Iterable, List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from torch.nn.init import _calculate_correct_fan
  from torch.nn.modules.utils import _single
  from nemo.collections.common.parts.utils import activation_registry
  from nemo.core.classes.mixins import AccessMixin
  from nemo.core.classes.mixins.adapter_mixins import AdapterModuleMixin
  from nemo.utils import logging
label_desc: Use image node_id 5 for calling a global function with example usage: get_same_padding(kernel_size, stride, dilation) and returns: unknown