code: def _get_non_pareto_front_trials(
      study: MultiObjectiveStudy,
      pareto_trials: List[
          "multi_objective.trial.FrozenMultiObjectiveTrial"
      ],
  ) -> List["multi_objective.trial.FrozenMultiObjectiveTrial"]:
      non_pareto_trials = []
      for trial in study.get_trials():
          if (
              trial.state == TrialState.COMPLETE
              and trial not in pareto_trials
          ):
              non_pareto_trials.append(trial)
      return non_pareto_trials
  
file_path: optuna/optuna/multi_objective/visualization/_pareto_front.py
imports: import json
  from typing import List
  from typing import Optional
  import optuna
  from optuna import multi_objective
  from optuna._deprecated import deprecated_func
  from optuna.multi_objective.study import MultiObjectiveStudy
  from optuna.multi_objective.trial import FrozenMultiObjectiveTrial
  from optuna.trial import TrialState
  from optuna.visualization._plotly_imports import _imports
label_desc: Use image node_id 2 for calling a global function with example usage: _get_non_pareto_front_trials(study, pareto_trials) and returns: non_pareto_trials