def METHOD_NAME():
    """Check to see if the system PXE-booted."""
    if shutil.which("efibootmgr") is None:
        print("The efibootmgr utility is not installed; exiting!")
        return 4
    if not os.geteuid() == 0:
        print("This program must be run as root (or via sudo); exiting!")
        return 4
    retval = 0
    boot_entries, boot_order, boot_current = discover_data()
    if boot_entries == {}:
        print("No EFI boot entries are available. This may indicate a "
              "firmware problem.")
        retval = 2
    if boot_order == []:
        print("The EFI BootOrder variable is not available. This may "
              "indicate a firmware")
        print("problem.")
        retval = 3
    if boot_current == "":
        print("FAIL: The EFI BootCurrent variable is missing. This may "
              "indicate a firmware")
        print("problem.")
        retval = 4
    if (retval == 0):
        retval = is_pxe_booted(boot_entries, boot_order, boot_current)
    return retval