def METHOD_NAME(h, **kwargs):
    """
    Compute the sum of the input tensor along the second to last dimension.
    Parameters
    ----------
    h : torch.Tensor
        Input tensor.
    Returns
    -------
    torch.Tensor
        Sum of the input tensor along the second to last dimension.
    """
    return torch.sum(h, dim=-2)