code: def test_get_pareto_front_plot(
      plotter: Callable[[_ParetoFrontInfo], Any],
      info_template: _ParetoFrontInfo,
      include_dominated_trials: bool,
      has_constraints_func: bool,
  ) -> None:
      info = info_template
      if not include_dominated_trials:
          info = info._replace(
              include_dominated_trials=False,
              non_best_trials_with_values=[],
          )
      if not has_constraints_func:
          info = info._replace(
              has_constraints_func=False,
              infeasible_trials_with_values=[],
          )
  
      figure = plotter(info)
      if isinstance(figure, go.Figure):
          figure.write_image(BytesIO())
      else:
          plt.savefig(BytesIO())
          plt.close()
  
imports: from __future__ import annotations
  from io import BytesIO
  from typing import Any
  from typing import Callable
  from typing import Sequence
  import warnings
  import pytest
  import optuna
  from optuna import create_study
  from optuna import create_trial
  from optuna.distributions import FloatDistribution
  from optuna.study.study import Study
  from optuna.trial import FrozenTrial
  from optuna.visualization import plot_pareto_front
  import optuna.visualization._pareto_front
  from optuna.visualization._pareto_front import _get_pareto_front_info
  from optuna.visualization._pareto_front import _ParetoFrontInfo
  from optuna.visualization._plotly_imports import go
  from optuna.visualization._utils import COLOR_SCALE
  from optuna.visualization.matplotlib._matplotlib_imports import plt
  import optuna.visualization.matplotlib._pareto_front
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_pareto_front_plot(plotter, info_template, include_dominated_trials, has_constraints_func) without return types