@staticmethod<EOL><INDENT>def _capture_stdout(callable: Callable[..., CaptureResult], *args, **kwargs) -> CaptureResult:<DEDENT>
stream = StringIO()<EOL>with redirect_stdout(stream):<EOL><INDENT>return_value = callable(*args, **kwargs)<EOL><DEDENT>assert return_value.stdout is None, "<STR_LIT>"<EOL>return CaptureResult(return_value=return_value.return_value, stdout=stream.getvalue(),<EOL>stderr=return_value.stderr, exception=return_value.exception)<EOL>
Captures content written to standard out.
: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