def METHOD_NAME():
    if not to_output_file:
        return sys.stdout
    output_file = input_file.parent.joinpath(
        f"{input_file.stem}.csv")
    with open(output_file) as out_file:
        yield out_file