def METHOD_NAME(path: list, xy: list):
    """
    :meta private:
    """
    if len(xy) == 0:
        xy = ["epochs", "val_loss"]
    elif len(xy) != 2:
        raise DeephyperRuntimeError(
            "--xy must take two arguments such as '--xy epochs val_loss'"
        )
    xlabel, ylabel = xy
    plt.figure()
    if xlabel == "epochs":
        plot_multiple_training(path, ylabel)
    elif xlabel == "time":
        plot_multiple_objective_wrp_time(path, ylabel)
    plt.ylabel(ylabel)
    plt.grid()
    plt.tight_layout()
    plt.show()