def METHOD_NAME(variants_all_rgb):
    props = mi.Properties()
    props.set_plugin_name('path')
    props['max_depth'] = 4
    it = mi.PluginManager.instance().create_object(props)
    assert mi.variant() == it.class_().variant()
    assert it.class_().name() == 'PathIntegrator'
    assert 'max_depth = 4' in str(it)