def METHOD_NAME(job: RunningJob) -> dict:
    assert isinstance(job.stopper, SuccessiveHalvingStopper)
    max_budget = 50
    objective_i = 0
    for budget_i in range(1, max_budget + 1):
        objective_i += job["x"]
        time.sleep(0.001)
        job.record(budget_i, objective_i)
        if job.stopped():
            break
    # print(f"job {job.id} stopped at budget {budget_i} with objective {objective_i}")
    return {
        "objective": job.objective,
        "metadata": {"budget": budget_i, "stopped": budget_i < max_budget},
    }