code: def get_up_sample_padding(
      kernel_size: int, stride: int
  ) -> Tuple[int, int]:
      output_padding = (kernel_size - stride) % 2
      padding = (kernel_size - stride + 1) // 2
      return padding, output_padding
  
imports: from typing import List, Optional, Tuple
  import torch
  import torch.nn
  from einops import rearrange
  from nemo.collections.asr.parts.utils.activations import Snake
  from nemo.collections.tts.parts.utils.helpers import mask_sequence_tensor
  from nemo.core.classes.common import typecheck
  from nemo.core.classes.module import NeuralModule
  from nemo.core.neural_types.elements import EncodedRepresentation, Index, LengthsType, VoidType
  from nemo.core.neural_types.neural_type import NeuralType
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling a global function with example usage: get_up_sample_padding(kernel_size, stride) and returns: padding,  output_padding