def METHOD_NAME(loss, title, xlabel="TPR", ylabel="1/FPR", save_dir=None):
    """Plot ROC curve.
    Parameters
    ----------
    loss : (:class:`numpy.ndarray`, :class:`numpy.ndarray`)
        (Anomaly score for QCD data, Anomaly score for signal data).
    title : str
        Title of ROC curve plot.
    xlabel : str
        Name of x-axis in ROC plot.
    ylabel : str
        Name of y-axis in ROC plot.
    save_dir : str
        Path to directory for saving ROC plot.
    """
    fig = plt.figure(figsize=(8, 8))
    loss_qcd, loss_sig = loss
    # roc data
    data = get_roc_data(loss_qcd, loss_sig)
    tpr = data[1]
    fpr = data[0]
    plt.plot(tpr, 1.0 / fpr, label="(auc = %.2f)" % (data[2] * 100.0), linewidth=1.5)
    plt.ylabel(ylabel)
    plt.xlabel(xlabel)
    plt.yscale("log")
    plt.title(title)
    plt.legend(
        fancybox=True, frameon=True, prop={"size": 10}, bbox_to_anchor=(1.0, 1.0)
    )
    plt.grid(True)
    if save_dir:
        if os.path.exists(save_dir) is False:
            os.system(f"mkdir {save_dir}")
        plt.savefig(f"{save_dir}/roc_curve.pdf", dpi=fig.dpi, bbox_inches="tight")
    else:
        plt.show()