def METHOD_NAME(monkeypatch):
    """A context manager to save & reset after code that changes sys.path"""
    @contextlib.contextmanager
    def _sys_path_reset():
        with monkeypatch.context() as m:
            m.setattr("sys.path", sys.path[:])
            yield
    return _sys_path_reset