code: def _diagonal_trace(
      min_: float, max_: float, visible: bool = True
  ) -> Dict[str, Any]:
      """Diagonal line trace from (min_, min_) to (max_, max_).
  
      Args:
          min_: minimum to be used for starting point of line.
          max_: maximum to be used for ending point of line.
          visible: if True, trace is set to visible.
  
      """
      return go.Scatter(
          x=[min_, max_],
          y=[min_, max_],
          line=dict(color="black", width=2, dash="dot"),  # noqa: C408
          mode="lines",
          hoverinfo="none",
          visible=visible,
          showlegend=False,
      )
  
imports: from copy import deepcopy
  from typing import Any, Dict, List, Optional, Tuple
  import numpy
  import plotly.graph_objs
  from ax.core.batch_trial import BatchTrial
  from ax.core.data import Data
  from ax.core.experiment import Experiment
  from ax.core.multi_type_experiment import MultiTypeExperiment
  from ax.core.observation import Observation
  from ax.modelbridge.cross_validation import CVResult
  from ax.modelbridge.transforms.convert_metric_names import convert_mt_observations
  from ax.plot.base import AxPlotConfig, AxPlotTypes, PlotData, PlotInSampleArm, PlotMetric, Z
  from ax.plot.helper import compose_annotation
  from ax.plot.scatter import _error_scatter_data, _error_scatter_trace
  from ax.utils.common.typeutils import not_none
  from plotly import subplots
label_desc: Use image node_id 2 for calling a global function with example usage: _diagonal_trace(min_, max_, visible) and returns: go