code: def get_padding(kernel_size: int, dilation: int = 1) -> int:
      return int((kernel_size * dilation - dilation) / 2)
  
file_path: audiocraft/audiocraft/adversarial/discriminators/mpd.py
imports: import typing
  import torch
  import torch.nn
  import torch.nn.functional
  from ...modules import NormConv2d
  from .base import MultiDiscriminator, MultiDiscriminatorOutputType
label_desc: Use image node_id 1 for calling a global function with example usage: get_padding(kernel_size, dilation) and returns: int