code: def _check_label_lengths(labels: List[str]) -> None:
      """Utility function to check label length and provide a warning for long
         labels pointing to a mapping that can be used to override them.
  
      Args:
          labels: List of labels to check.
      """
      max_len = 30
      long_labels = [label for label in labels if len(label) > max_len]
      if long_labels:
          logger.info(
              "This plot may be malformed due to long labels. You"
              " can override long labels by passing a label_dict dictionary"
              " to plotting functions that support it.\nHere's a list of labels"
              f" longer than {max_len} characters:\n"
              + "\n".join(long_labels)
          )
  
imports: import numbers
  import warnings
  from collections import OrderedDict
  from logging import Logger
  from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union
  import numpy
  import plotly.graph_objs
  from ax.core.data import Data
  from ax.core.experiment import Experiment
  from ax.core.observation import Observation, ObservationFeatures
  from ax.modelbridge.base import ModelBridge
  from ax.modelbridge.registry import Models
  from ax.plot.base import AxPlotConfig, AxPlotTypes, CI_OPACITY, DECIMALS, PlotInSampleArm, PlotMetric, PlotOutOfSampleArm, Z
  from ax.plot.color import BLUE_SCALE, COLORS, DISCRETE_COLOR_SCALE, rgba
  from ax.plot.helper import _format_CI, _format_dict, _wrap_metric, arm_name_to_sort_key, arm_name_to_tuple, get_plot_data, infer_is_relative, resize_subtitles, TNullableGeneratorRunsDict
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import checked_cast_optional
  from ax.utils.stats.statstools import relativize
  from plotly import subplots
label_desc: Use image node_id 7 for calling a global function with example usage: _check_label_lengths(labels) without return types