code: def string_is_bool(
      series: pd.Series, state: dict, k: Dict[str, bool]
  ) -> bool:
      @series_handle_nulls
      @try_func
      def tester(s: pd.Series, state: dict) -> bool:
          return s.str.lower().isin(k.keys()).all()
  
      if pdt.is_categorical_dtype(series):
          return False
  
      return tester(series, state)
  
imports: import functools
  from typing import Callable, Dict
  import numpy
  import pandas
  from pandas.api import types
  from visions.backends.pandas.series_utils import series_handle_nulls
  from ydata_profiling.config import Settings
  from ydata_profiling.utils.versions import is_pandas_1
label_desc: Use image node_id 3 for calling a global function with example usage: string_is_bool(series, state, k) and returns: tester, s, False