code: def _compute_zero_padding(
      kernel_size: tuple[int, int] | int
  ) -> tuple[int, int]:
      r"""Utility function that computes zero padding tuple."""
      ky, kx = _unpack_2d_ks(kernel_size)
      return (ky - 1) // 2, (kx - 1) // 2
  
file_path: kornia/kornia/filters/median.py
imports: from __future__ import annotations
  import torch.nn.functional
  from kornia.core import Module, Tensor
  from kornia.core.check import KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE
  from .kernels import _unpack_2d_ks, get_binary_kernel2d
label_desc: Use image node_id 1 for calling a global function with example usage: _compute_zero_padding(kernel_size) and returns: unknown,  unknown