code: def objective_test_upgrade(trial: optuna.trial.Trial) -> float:
      x = trial.suggest_float(
          "x", -5, 5
      )  # optuna==0.9.0 does not have suggest_float.
      y = trial.suggest_int("y", 0, 10)
      z = trial.suggest_categorical("z", [-5, 0, 5])
      trial.storage.set_trial_system_attr(trial._trial_id, "a", 0)
      trial.set_user_attr("b", 1)
      trial.report(0.5, step=0)
      return x**2 + y**2 + z**2
  
imports: from argparse import ArgumentParser
  from typing import Tuple
  from packaging import version
  import optuna
label_desc: Use image node_id 1 for calling a global function with example usage: objective_test_upgrade(trial) and returns: unknown