def METHOD_NAME():
    args = parser.parse_args()
    if not os.path.isfile(args.statsfile):
        exit(f"Error! File not found: {args.statsfile}")
    if not os.path.isdir(args.outdir):
        os.mkdir(args.outdir)
    bank_util_list = args.bankutils.strip().split()
    seqbyte_list = args.seqbytes.strip().split()
    delays = args.delays.strip().split()
    plotter.plotLowPStates(
        args.outdir + "/", args.statsfile, bank_util_list, seqbyte_list, delays
    )
    if args.pdf:
        textwidth = "0.5"
        ### Time and energy plots ###
        #############################
        # place tex and pdf files in outdir
        os.chdir(args.outdir)
        texfile_s = "stacked_lowp_sweep.tex"
        print("\t", texfile_s)
        outfile = open(texfile_s, "w")
        startDocText(outfile)
        outfile.write("\\begin{figure} \n\\centering\n")
        ## Time plots for all delay values
        for delay in delays:
            # Time
            filename = plotter.stateTimePlotName(str(delay) + "-")
            outfile.write(wrapForGraphic(filename, textwidth))
            outfile.write(getCaption(delay))
        outfile.write("\end{figure}\n")
        # Energy plots for all delay values
        outfile.write("\\begin{figure} \n\\centering\n")
        for delay in delays:
            # Energy
            filename = plotter.stateEnergyPlotName(str(delay) + "-")
            outfile.write(wrapForGraphic(filename, textwidth))
            outfile.write(getCaption(delay))
        outfile.write("\\end{figure}\n")
        endDocText(outfile)
        outfile.close()
        print("\n Generating pdf file")
        print("*******************************")
        print("\tpdflatex ", texfile_s)
        # Run pdflatex to generate to pdf
        call(["pdflatex", texfile_s])
        call(["open", texfile_s.split(".")[0] + ".pdf"])