def METHOD_NAME():
    import argparse
    import os
    parser = argparse.ArgumentParser(
        description='Send email notification based on regression test status',
        formatter_class=argparse.RawTextHelpFormatter)
    parser.add_argument('teststatus', type=str,
                        choices=['passed', 'failed', 'fixed'],
                        help='Status of regression test')
    parser.add_argument('testname', type=str,
                        help='Name branch name or pull-request tested')
    parser.add_argument('testurl', type=str,
                        help='URL for viewing test results')
    # parse command line args
    args = parser.parse_args()
    # name of regression test log file
    logfile = "suntest.log"
    # if log file exists add url, otherwise create log file
    if (os.path.isfile(logfile)):
        with open(logfile, "a") as log:
            log.write("View test output at:\n")
            log.write(args.testurl)
    else:
        print("Warning: log file not found")
        with open(logfile, "w") as log:
            log.write("Warning: log file not found\n")
            log.write("View test output at:\n")
            log.write(args.testurl)
    # determine notification recipient
    special_branches = ['main', 'develop', 'release']
    if any(branch in args.testname for branch in special_branches):
        # SUNDIALS developers list
        recipient = "sundials-devs@llnl.gov"
    else:
        # author of most recent commit
        cmd = "git log --format='%ae' -1"
        recipient = runCommand(cmd).rstrip()
        # check if the last commit was a CI merge
        if (recipient == 'nobody@nowhere'):
            cmd = "git log HEAD~1 --pretty=format:'%ae' -1"
            recipient = runCommand(cmd).rstrip()
    # send notification if tests fail, log file not found, or fixed
    if (args.teststatus == 'failed'):
        subject = "FAILED: SUNDIALS "+args.testname+" failed regression tests"
        print("Tests failed, sending notification to", recipient)
        sendEmail(recipient, subject, logfile)
    elif (args.teststatus == 'fixed'):
        subject = "FIXED: SUNDIALS "+args.testname+" passed regression tests"
        print("Tests fixed, sending notification to", recipient)
        sendEmail(recipient, subject, logfile)
    else:
        print("Tests passed, no notifications sent")