code: def test_plot_pareto_front_invalid_axis_order(
      dimension: int, include_dominated_trials: bool
  ) -> None:
      study = optuna.multi_objective.create_study(
          ["minimize"] * dimension
      )
  
      # Invalid: len(axis_order) != dimension
      with pytest.raises(ValueError):
          invalid_axis_order = list(range(dimension + 1))
          assert len(invalid_axis_order) != dimension
          plot_pareto_front(
              study,
              include_dominated_trials=include_dominated_trials,
              axis_order=invalid_axis_order,
          )
  
      # Invalid: np.unique(axis_order).size != dimension
      with pytest.raises(ValueError):
          invalid_axis_order = list(range(dimension))
          invalid_axis_order[1] = invalid_axis_order[0]
          assert np.unique(invalid_axis_order).size != dimension
          plot_pareto_front(
              study,
              include_dominated_trials=include_dominated_trials,
              axis_order=invalid_axis_order,
          )
  
      # Invalid: max(axis_order) > (dimension - 1)
      with pytest.raises(ValueError):
          invalid_axis_order = list(range(dimension))
          invalid_axis_order[-1] += 1
          assert max(invalid_axis_order) > (dimension - 1)
          plot_pareto_front(
              study,
              include_dominated_trials=include_dominated_trials,
              axis_order=invalid_axis_order,
          )
  
      # Invalid: min(axis_order) < 0
      with pytest.raises(ValueError):
          study = optuna.multi_objective.create_study(
              ["minimize", "minimize"]
          )
          invalid_axis_order = list(range(dimension))
          invalid_axis_order[0] -= 1
          assert min(invalid_axis_order) < 0
          plot_pareto_front(
              study,
              include_dominated_trials=include_dominated_trials,
              axis_order=invalid_axis_order,
          )
  
file_path: optuna/tests/multi_objective_tests/visualization_tests/test_pareto_front.py
imports: import itertools
  from typing import List
  from typing import Optional
  from typing import Tuple
  import numpy
  import pytest
  import optuna
  from optuna.multi_objective.visualization import plot_pareto_front
label_desc: Use image node_id 4 for calling a global function with example usage: test_plot_pareto_front_invalid_axis_order(dimension, include_dominated_trials) without return types