from typing import Tuple
import functools
import operator


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

    """
    Returns the numer of kernel elements.

    Arguments:
        kernel_size : tuple of integers

    Return:
        number of kernel elements
    """

    return functools.reduce(operator.mul, kernel_size)