code: def _deprecated_datetime_list_format(fmt: list[str]) -> str:
      deprecated(
          "Passing lists of formats for DatetimeTickFormatter scales was deprecated in Bokeh 3.0. Configure a single string format for each scale"
      )
      if len(fmt) == 0:
          raise ValueError(
              "Datetime format list must contain one element"
          )
      if len(fmt) > 1:
          warn(
              f"DatetimeFormatter scales now only accept a single format. Using the first provided: {fmt[0]!r}"
          )
      return fmt[0]
  
imports: from __future__ import annotations
  import logging
  from ..core.enums import ContextWhich, LatLon, LocationType, NumeralLanguage, ResolutionType, RoundingFunction
  from ..core.has_props import abstract
  from ..core.properties import AnyRef, Auto, Bool, Dict, Either, Enum, Instance, Int, List, Nullable, Seq, String
  from ..core.validation import error
  from ..core.validation.errors import MISSING_MERCATOR_DIMENSION
  from ..model import Model
  from ..util.deprecation import deprecated
  from ..util.strings import format_docstring
  from ..util.warnings import warn
  from .tickers import Ticker
label_desc: Use image node_id 3 for calling a global function with example usage: _deprecated_datetime_list_format(fmt) and returns: fmt