from datetime import datetime


def create_label_for_output_file(first_pages_drawn, time_in_minutes, total_num_drawn):
    """
    creates a label for a graph drawn, for example:
            Graph generated on 08/05/2021 13:15:56. Checked 40 pages.
    :param first_pages_drawn: the list of the first pages drawn
    :param time_in_minutes: time took to run in minutes
    :param total_num_drawn: the total number of pages drawn
    :return: the label generated for the graph.
    """
    now = datetime.now()
    # \l is for new line
    label = "\lGraph generated on " + now.strftime("%d/%m/%Y %H:%M:%S") + ".\lChecked " + str(
        len(first_pages_drawn)) + " pages. Time took: " + time_in_minutes + \
            " minutes.\lNumber of pages drawn: " + str(total_num_drawn)
    return label