def subprocess_runner(self, runner):
        """A context manager for temporarily overriding the default subprocess
        runner.
        """
        prev = self._subprocess_runner
        self._subprocess_runner = runner
        try:
            yield
        finally:
            self._subprocess_runner = prev
A context manager for temporarily overriding the default subprocess
        runner.
        
product/gradle-plugin/src/main/python/pip/_vendor/pep517/wrappers.py