code: def _get_strategy_dtypes(
      *,
      base_type: bool = False,
      excluding: tuple[PolarsDataType] | PolarsDataType | None = None,
  ) -> list[PolarsDataType]:
      """
      Get a list of all the dtypes for which we have a strategy.
  
      Parameters
      ----------
      base_type
          If True, return the base types for each dtype (eg:`List(String)` → `List`).
      excluding
          A dtype or sequence of dtypes to omit from the results.
  
      """
      excluding = (excluding,) if is_polars_dtype(excluding) else (excluding or ())  # type: ignore[assignment]
      strategy_dtypes = list(
          chain(scalar_strategies.keys(), nested_strategies.keys())
      )
      return [
          (tp.base_type() if base_type else tp)
          for tp in strategy_dtypes
          if tp not in excluding  # type: ignore[operator]
      ]
  
imports: from __future__ import annotations
  import os
  from datetime import datetime, timedelta
  from itertools import chain
  from random import choice, shuffle
  from string import ascii_uppercase
  from typing import TYPE_CHECKING, Any, Callable, Iterator, Mapping, MutableMapping, Sequence
  from hypothesis.strategies import SearchStrategy, binary, booleans, characters, composite, dates, datetimes, decimals, floats, from_type, integers, lists, sampled_from, sets, text, timedeltas, times
  from polars.datatypes import Binary, Boolean, Categorical, Date, Datetime, Decimal, Duration, Float32, Float64, Int8, Int16, Int32, Int64, List, String, Time, UInt8, UInt16, UInt32, UInt64, is_polars_dtype
  from polars.type_aliases import PolarsDataType
  from polars.utils.deprecation import deprecate_nonkeyword_arguments
label_desc: Use image node_id 4 for calling a global function with example usage: _get_strategy_dtypes() and returns: unknown