def METHOD_NAME(data, ax, col, legend):
    if "Condition" in data.columns:
        grouped = data.groupby("Condition")
        # Colors
        color_list = ["red", "blue", "green", "yellow", "purple", "orange", "cyan", "magenta"]
        colors = {}
        for i, cond in enumerate(set(data["Condition"])):
            colors[cond] = color_list[i]
        # Plot
        for key, group in grouped:
            df = group.pivot_table(index="Time", columns=["Condition", "Label"], values=col)
            df.plot(ax=ax, label=col, title=col, style=colors[key], legend=legend)
        # TODO: Custom legend
    else:
        data.pivot(index="Time", columns="Label", values=col).plot(
            ax=ax, label=col, title=col, legend=legend
        )