def METHOD_NAME(ndim, keepdims, dtype):
    np_res = np.linalg.norm(np_arrays[ndim].astype(dtype), keepdims=keepdims)
    num_res = num.linalg.norm(
        num_arrays[ndim].astype(dtype), keepdims=keepdims
    )
    assert allclose(np_res, num_res)