def METHOD_NAME(dtype):
    nrm2 = _nrm2_memview[_numpy_to_cython(dtype)]
    rng = np.random.RandomState(0)
    x = rng.random_sample(10).astype(dtype, copy=False)
    expected = np.linalg.norm(x)
    actual = nrm2(x)
    assert_allclose(actual, expected, rtol=RTOL[dtype])