code: def interact_cross_validation(
      cv_results: List[CVResult],
      show_context: bool = True,
      caption: str = "",
      label_dict: Optional[Dict[str, str]] = None,
      autoset_axis_limits: bool = True,
  ) -> AxPlotConfig:
      """Interactive cross-validation (CV) plotting; select metric via dropdown.
  
      Note: uses the Plotly version of dropdown (which means that all data is
      stored within the notebook).
  
      Args:
          cv_results: cross-validation results.
          show_context: if True, show context on hover.
          label_dict: optional map from real metric names to shortened names
          autoset_axis_limits: Automatically try to set the limit for each axis to focus
              on the region of interest.
  
      Returns an AxPlotConfig
      """
      return AxPlotConfig(
          data=interact_cross_validation_plotly(
              cv_results=cv_results,
              show_context=show_context,
              caption=caption,
              label_dict=label_dict,
              autoset_axis_limits=autoset_axis_limits,
          ),
          plot_type=AxPlotTypes.GENERIC,
      )
  
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 8 for calling a global function with example usage: interact_cross_validation(cv_results, show_context, caption, label_dict, autoset_axis_limits) and returns: AxPlotConfig