code: def get_2d_padding(
      kernel_size: tp.Tuple[int, int],
      dilation: tp.Tuple[int, int] = (1, 1),
  ):
      return (
          ((kernel_size[0] - 1) * dilation[0]) // 2,
          ((kernel_size[1] - 1) * dilation[1]) // 2,
      )
  
file_path: audiocraft/audiocraft/adversarial/discriminators/msstftd.py
imports: import typing
  import torchaudio
  import torch
  from torch import nn
  from einops import rearrange
  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_2d_padding(kernel_size, dilation) and returns: unknown,  unknown