code: def test_optimize(n_objectives: int) -> None:
      directions = ["minimize" for _ in range(n_objectives)]
      study = optuna.multi_objective.create_study(directions)
  
      def objective(
          trial: optuna.multi_objective.trial.MultiObjectiveTrial,
      ) -> List[float]:
          return [
              trial.suggest_uniform("v{}".format(i), 0, 5)
              for i in range(n_objectives)
          ]
  
      study.optimize(objective, n_trials=10)
  
      assert len(study.trials) == 10
  
      for trial in study.trials:
          assert len(trial.values) == n_objectives
  
file_path: optuna/tests/multi_objective_tests/test_study.py
imports: from typing import List
  from typing import Tuple
  import uuid
  import _pytest.capture
  import pytest
  import optuna
  from optuna.study._study_direction import StudyDirection
  from optuna.testing.storages import StorageSupplier
label_desc: Use image node_id 3 for calling a global function with example usage: test_optimize(n_objectives) and returns: unknown