def METHOD_NAME(self, kwargs, active_fixture):
    if self.info.needs_this:
        assert 'this' not in kwargs
        kwargs['this'] = active_fixture
    with ExitStack() as stack:
        if context.session is not None:
            stack.enter_context(context.session.cleanups.default_scope_override(self.info.scope_name))
        return self.fixture_func(**kwargs)