code: def _make_marker(
      trials: Sequence[FrozenTrial],
      include_dominated_trials: bool,
      dominated_trials: bool = False,
      infeasible: bool = False,
  ) -> dict[str, Any]:
      if dominated_trials and not include_dominated_trials:
          assert len(trials) == 0
  
      if infeasible:
          return {
              "color": "#cccccc",
          }
      elif dominated_trials:
          return {
              "line": {"width": 0.5, "color": "Grey"},
              "color": [t.number for t in trials],
              "colorscale": "Blues",
              "colorbar": {
                  "title": "Trial",
              },
          }
      else:
          return {
              "line": {"width": 0.5, "color": "Grey"},
              "color": [t.number for t in trials],
              "colorscale": "Reds",
              "colorbar": {
                  "title": "Best Trial",
                  "x": 1.1 if include_dominated_trials else 1,
                  "xpad": 40,
              },
          }
  
imports: from __future__ import annotations
  from collections.abc import Callable
  from collections.abc import Sequence
  from typing import Any
  from typing import NamedTuple
  import warnings
  import optuna
  from optuna.exceptions import ExperimentalWarning
  from optuna.study import Study
  from optuna.study._multi_objective import _get_pareto_front_trials_by_trials
  from optuna.trial import FrozenTrial
  from optuna.trial import TrialState
  from optuna.visualization._plotly_imports import _imports
  from optuna.visualization._utils import _make_hovertext
label_desc: Use image node_id 7 for calling a global function with example usage: _make_marker(trials, include_dominated_trials, dominated_trials, infeasible) and returns: dict, dict, dict