code: def __init__(
      self,
      *,
      constraints_func: Callable[[FrozenTrial], Sequence[float]]
      | None = None,
  ) -> None:
      self._constraints_func = constraints_func
  
file_path: optuna/optuna/samplers/nsgaii/_after_trial_strategy.py
imports: from __future__ import annotations
  from collections.abc import Callable
  from collections.abc import Sequence
  from optuna.samplers._base import _process_constraints_after_trial
  from optuna.study import Study
  from optuna.trial import FrozenTrial
  from optuna.trial import TrialState
label_desc: Use image node_id 1 to create a new NSGAIIAfterTrialStrategy object  with example: obj = NSGAIIAfterTrialStrategy()