def METHOD_NAME(
    kernel_weights: List[float],
) -> Callable[[np.ndarray, np.ndarray], float]:
    kernel_weights_nd = np.array(kernel_weights, dtype=np.float32)
    return lambda x, y: cast(
        float, -np.sum(kernel_weights_nd * np.abs(x - y))
    )