@staticmethod<EOL><INDENT>def _capture_stderr(callable: Callable[..., CaptureResult], *args, **kwargs) -> CaptureResult:<DEDENT>
stream = StringIO()<EOL>with redirect_stderr(stream):<EOL><INDENT>return_value = callable(*args, **kwargs)<EOL><DEDENT>assert return_value.stderr is None, "<STR_LIT>"<EOL>return CaptureResult(return_value=return_value.return_value, stdout=return_value.stdout,<EOL>stderr=stream.getvalue(), exception=return_value.exception)<EOL>
Captures content written to standard error.
:param callable: the callable to wrap
:param args: positional arguments passed to the callable
:param kwargs: keyword arguments passed to the callable
:return: the captured result