code: def func_nullable_series_contains(fn: Callable) -> Callable:
      @functools.wraps(fn)
      def inner(
          config: Settings,
          series: pd.Series,
          state: dict,
          *args,
          **kwargs,
      ) -> bool:
          if series.hasnans:
              series = series.dropna()
              if series.empty:
                  return False
  
          return fn(config, series, state, *args, **kwargs)
  
      return inner
  
imports: import functools
  from typing import Any, Callable, Optional, Tuple, TypeVar
  import numpy
  import pandas
  from multimethod import multimethod
  from scipy.stats import chisquare
  from ydata_profiling.config import Settings
label_desc: Use image node_id 1 for calling a global function with example usage: func_nullable_series_contains(fn) and returns: inner, fn, False