code: def _xl_column_range(
      df: DataFrame,
      table_start: tuple[int, int],
      col: str | tuple[int, int],
      *,
      include_header: bool,
      as_range: bool = True,
  ) -> tuple[int, int, int, int] | str:
      """Return the excel sheet range of a named column, accounting for all offsets."""
      col_start = (
          table_start[0] + int(include_header),
          table_start[1] + df.get_column_index(col)
          if isinstance(col, str)
          else col[0],
      )
      col_finish = (
          col_start[0] + len(df) - 1,
          col_start[1] + 0
          if isinstance(col, str)
          else (col[1] - col[0]),
      )
      if as_range:
          return "".join(_xl_rowcols_to_range(*col_start, *col_finish))
      else:
          return col_start + col_finish
  
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 7 for calling a global function with example usage: _xl_column_range(df, table_start, col) and returns: str, unknown