if "running" == get_eon_info(PROJECT_ID, "status")["status"]:
    print(
        "EON Tuner job is running, run section 2.4 to track the job's progress."
    )
else:
    payload = {
        "datasetCategory": # Select one of:
            # "speech_keyword"
            # "speech_continuous"
            # "audio_event"
            # "audio_continuous"
            # "transfer_learning"
            # "motion_event"
            # "motion_continuous"
            # "audio_syntiant"
            "audio_continuous",
        "targetLatency": 500,  # Latency in ms
        "targetDevice": {
            "name":  # Select one of:
            # cortex-m4f-80mhz
            # cortex-m7-216mhz
            # st-iot-discovery-kit
            # arduino-nano-33-ble
            # nordic-nrf52840-dk
            # nordic-nrf5340-dk
            # nordic-nrf9160-dk
            # silabs-thunderboard-sense-2
            # silabs-xg24
            # synaptics-ka10000
            # himax-we-i
            # wio-terminal
            # sony-spresense
            # ti-launchxl
            # portenta-h7
            # mbp-16-2020
            # raspberry-pi-4
            # raspberry-pi-rp2040
            # jetson-nano
            "jetson-nano",
            "ram": 262144,  # Memory in bytes
            "rom": 1048576  # Memory in bytes
        },
        "trainingCycles": 10,  # Default 100
        "tuningMaxTrials": 3,  # Default 30
        "tuningWorkers": 9,  # Default 3
        "minMACCS": 100,  # Default 0
        "maxMACCS": 1750,  # Default 1750000
        "tuningAlgorithm": # Select one of:
        # "random"
        # "hyperband"
        # "bayesian"
        "random"
    }
    response = requests.post(URL_PROJECT + "/optimize/config",
                            headers=API_HEADERS,
                            json=payload)
    if response.ok:
        # Show me the new configuration
        response = requests.get(URL_PROJECT + "/optimize/state", headers=API_HEADERS)
        if response.ok:
            print("EON Tuner configuration updated successfully!")
            print(json.dumps(get_eon_info(PROJECT_ID, "config"), indent=2))