def METHOD_NAME(npe2pm: 'TestPluginManager'):
    from napari.plugins import _initialize_plugins
    _initialize_plugins.cache_clear()
    mock_reg = MagicMock()
    npe2pm._command_registry = mock_reg
    with npe2pm.tmp_plugin(manifest=MANIFEST_PATH):
        yield npe2pm