def METHOD_NAME(record: Dict[str, str]) -> None:
    """Call on each new line."""
    # Print record as JSON and write it to a logfile
    line = str(json.dumps(record))
    print(line)
    write_to_logfile(line)
    # Analyze record and if possible extract a plot_type and data from it
    plot_type, data = parse_plot_message(record["message"])
    if plot_type == "accuracies" and data is not None:
        plot_accuracies(data)