def METHOD_NAME(self, console: "Console") -> Iterator[Callable[[str], None]]:
    """Given a Console, yields a function for writing data to stdout, or a file.
    The passed options instance will generally be the `Goal.Options` of an `Outputting` `Goal`.
    """
    with self.output_sink(console) as output_sink:
        yield lambda msg: output_sink.write(msg)  # type: ignore[no-any-return]