def METHOD_NAME(variant_scalar_rgb):
    b = mi.load_dict({'type': 'dielectric'})
    assert b is not None
    assert b.component_count() == 2
    assert b.flags(0) == (mi.BSDFFlags.DeltaReflection | mi.BSDFFlags.FrontSide |
                          mi.BSDFFlags.BackSide)
    assert b.flags(1) == (mi.BSDFFlags.DeltaTransmission | mi.BSDFFlags.FrontSide |
                          mi.BSDFFlags.BackSide | mi.BSDFFlags.NonSymmetric)
    assert b.flags() == b.flags(0) | b.flags(1)
    # Should not accept negative IORs
    with pytest.raises(RuntimeError):
        mi.load_dict({'type': 'dielectric', 'int_ior': -0.5})