def METHOD_NAME(variant_scalar_rgb):
    weight = 0.2
    bsdf = mi.load_dict({
        'type': 'blendbsdf',
        'nested1': {
            'type': 'diffuse',
            'reflectance': {'type': 'rgb', 'value': 0.0}
        },
        'nested2': {
            'type': 'diffuse',
            'reflectance': {'type': 'rgb', 'value': 1.0}
        },
        'weight': weight,
    })
    si = mi.SurfaceInteraction3f()
    si.t = 0.1
    si.p = [0, 0, 0]
    si.n = [0, 0, 1]
    si.sh_frame = mi.Frame3f(si.n)
    si.wi = [0, 0, 1]
    wo = [0, 0, 1]
    ctx = mi.BSDFContext()
    # Evaluate the blend of both components
    expected = (1 - weight) * 0.0 * dr.inv_pi + weight * 1.0 * dr.inv_pi
    value    = bsdf.eval(ctx, si, wo)
    assert dr.allclose(value, expected)