def METHOD_NAME(variants_vec_spectral, spectrum_key):
    # Check that eval() return the same values as the 'radiance' spectrum
    shape, spectrum = create_emitter_and_spectrum(spectrum_key)
    emitter = shape.emitter()
    it = dr.zeros(mi.SurfaceInteraction3f, 3)
    assert dr.allclose(emitter.eval(it), spectrum.eval(it))
    # Check that eval returns 0.0 when the direction points into the shape
    it.wi = dr.normalize(mi.ScalarVector3f(0.2, 0.2, -0.5))
    assert dr.allclose(emitter.eval(it), 0.0)