code: def _expand_selectors(
      frame: DataFrame | LazyFrame, items: Any, *more_items: Any
  ) -> list[Any]:
      """
      Internal function that expands any selectors to column names in the given input.
  
      Non-selector values are left as-is.
  
      Examples
      --------
      >>> from polars.selectors import _expand_selectors
      >>> import polars.selectors as cs
      >>> df = pl.DataFrame(
      ...     {
      ...         "colw": ["a", "b"],
      ...         "colx": ["x", "y"],
      ...         "coly": [123, 456],
      ...         "colz": [2.0, 5.5],
      ...     }
      ... )
      >>> _expand_selectors(df, ["colx", cs.numeric()])
      ['colx', 'coly', 'colz']
      >>> _expand_selectors(df, cs.string(), cs.float())
      ['colw', 'colx', 'colz']
  
      """
      expanded: list[Any] = []
      for item in (
          *(
              items
              if isinstance(items, Collection)
              and not isinstance(items, str)
              else [items]
          ),
          *more_items,
      ):
          if is_selector(item):
              selector_cols = expand_selector(frame, item)
              expanded.extend(selector_cols)
          else:
              expanded.append(item)
      return expanded
  
imports: from __future__ import annotations
  import re
  from datetime import timezone
  from functools import reduce
  from operator import or_
  from typing import TYPE_CHECKING, Any, Collection, Literal, Mapping, overload
  from polars import functions
  from polars.datatypes import FLOAT_DTYPES, INTEGER_DTYPES, NUMERIC_DTYPES, SIGNED_INTEGER_DTYPES, TEMPORAL_DTYPES, UNSIGNED_INTEGER_DTYPES, Binary, Boolean, Categorical, Date, Datetime, Decimal, Duration, Object, String, Time, is_polars_dtype
  from polars.expr import Expr
  from polars.utils.deprecation import deprecate_nonkeyword_arguments
  from polars.utils.various import is_column
label_desc: Use image node_id 5 for calling a global function with example usage: _expand_selectors(frame, items) and returns: expanded