def weave(self, target, **kwargs):
        try:
            import aspectlib
        except __HOLE__ as exc:
            raise ImportError(exc.args, "Please install aspectlib or pytest-benchmark[aspect]")

        def aspect(function):
            def wrapper(*args, **kwargs):
                return self(function, *args, **kwargs)

            return wrapper

        self._cleanup_callbacks.append(aspectlib.weave(target, aspect, **kwargs).rollback)
dataset/ETHPy150Open ionelmc/pytest-benchmark/src/pytest_benchmark/fixture.py/BenchmarkFixture.weave