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
  import torch
  from torch import nn
  from nemo.collections.tts.modules.submodules import ConvNorm
  from nemo.collections.tts.modules.transformer import PositionalEmbedding
label_desc: Use image node_id 1 for calling a global function with example usage: get_same_padding(kernel_size, stride, dilation) and returns: unknown