code: def _xl_column_multi_range(
      df: DataFrame,
      table_start: tuple[int, int],
      cols: Iterable[str],
      *,
      include_header: bool,
  ) -> str:
      """Return column ranges as an xlsxwriter 'multi_range' string, or spanning range."""
      m: dict[str, Any] = {}
      if _adjacent_cols(df, cols, min_max=m):
          return _xl_column_range(
              df,
              table_start,
              (m["min"]["idx"], m["max"]["idx"]),
              include_header=include_header,
          )
      return " ".join(
          _xl_column_range(
              df, table_start, col, include_header=include_header
          )
          for col in cols
      )
  
imports: from __future__ import annotations
  from io import BytesIO
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Iterable, Sequence, overload
  from polars import functions
  from polars.datatypes import FLOAT_DTYPES, INTEGER_DTYPES, Date, Datetime, Float64, List, Object, Struct, Time
  from polars.dependencies import json
  from polars.exceptions import DuplicateError
  from polars.selectors import _expand_selector_dicts, _expand_selectors
label_desc: Use image node_id 8 for calling a global function with example usage: _xl_column_multi_range(df, table_start, cols) and returns: str, _xl_column_range