def METHOD_NAME(request):
    testPluginMarkers = request.node.iter_markers('plugin')
    pluginRegistry = PluginRegistry(include_installed_plugins=False)
    if testPluginMarkers is not None:
        for testPluginMarker in testPluginMarkers:
            if len(testPluginMarker.args) > 1:
                pluginRegistry.registerTestPlugin(
                    *testPluginMarker.args, **testPluginMarker.kwargs
                )
    with pluginRegistry():
        yield