def METHOD_NAME(
    self,
    compare=False,
    generate=False,
    compare_name=None,
    generate_name=None,
    baseline_root=None,
    logfile_name="TestStatus.log",
):
    expect(self.get_value("TEST"), "Only makes sense to run this for a test case")
    caseroot, casebaseid = self.get_value("CASEROOT"), self.get_value("CASEBASEID")
    if not compare:
        compare = self.get_value("COMPARE_BASELINE")
    if not generate:
        generate = self.get_value("GENERATE_BASELINE")
    if not compare and not generate:
        logging.debug("No namelists compares requested")
        return True
    # create namelists for case if they haven't been already
    casedocs = os.path.join(caseroot, "CaseDocs")
    if not os.path.exists(os.path.join(casedocs, "drv_in")):
        self.create_namelists()
    test_name = casebaseid if casebaseid is not None else self.get_value("CASE")
    with TestStatus(test_dir=caseroot, test_name=test_name) as ts:
        try:
            # Inside this try are where we catch non-fatal errors, IE errors involving
            # baseline operations which may not directly impact the functioning of the viability of this case
            if compare and not compare_name:
                compare_name = self.get_value("BASELINE_NAME_CMP")
                expect(
                    compare_name,
                    "Was asked to do baseline compare but unable to determine baseline name",
                )
                logging.info(
                    "Comparing namelists with baselines '{}'".format(compare_name)
                )
            if generate and not generate_name:
                generate_name = self.get_value("BASELINE_NAME_GEN")
                expect(
                    generate_name,
                    "Was asked to do baseline generation but unable to determine baseline name",
                )
                logging.info(
                    "Generating namelists to baselines '{}'".format(generate_name)
                )
            success = True
            output = ""
            if compare:
                success, output = _do_full_nl_comp(
                    self, test_name, compare_name, baseline_root
                )
                if not success and ts.get_status(RUN_PHASE) is not None:
                    run_warn = """NOTE: It is not necessarily safe to compare namelists after RUN