def METHOD_NAME(job: RunningJob) -> dict:
    if not (job.storage.connected):
        job.storage.connect()
    job.storage.store_job_metadata(job.id, "foo", 0)
    return {
        "objective": job.parameters["x"],
        "metadata": {"storage_id": id(job.storage)},
    }