def METHOD_NAME(output_file_name: Optional[str], data: str) -> None:
    if output_file_name is None:
        click.echo(data)
        return
    with open(output_file_name, "w") as fp:
        fp.write(data)