from typing import Tuple


def _get_padding(
    kernel_size: Tuple[int,...]
) -> Tuple:

    """
    Returns the padding such that the spatial dimensions 
    of the convolution output are identical to the input dimensions.

    Arguments:
        kernel_size : tuple of integers

    Return:
        tuple, padding per dimension
    """
    
    return tuple([x // 2 for x in kernel_size])