def METHOD_NAME(self, dtype, a_is_gpu, b_is_gpu):
    from pycuda.elementwise import get_linear_combination_kernel
    return get_linear_combination_kernel(
        ((a_is_gpu, dtype, dtype), (b_is_gpu, dtype, dtype)), dtype
    )