code: def get_sanitized_bool_series(source: pd.Series) -> pd.Series:
      # This casting due to nan's causing crashes
      series_only_with_booleans = source.map(
          DataframeReport.sanitize_bool, na_action="ignore"
      )
      return (series_only_with_booleans * 1).astype("Int64")
  
imports: from typing import Union, List, Tuple
  import os
  import time
  import pandas
  from numpy import isnan
  from tqdm.auto import tqdm
  from sweetviz.sv_types import NumWithPercent, FeatureToProcess, FeatureType
  import sweetviz.from_dython
  import sweetviz.series_analyzer
  import sweetviz.utils
  from sweetviz.graph_associations import GraphAssoc
  from sweetviz.graph_associations import CORRELATION_ERROR
  from sweetviz.graph_associations import CORRELATION_IDENTICAL
  from sweetviz.graph_legend import GraphLegend
  from sweetviz.config import config
  import sweetviz.comet_ml_logger
  import sweetviz.sv_html
  from sweetviz.feature_config import FeatureConfig
  import webbrowser
  from sweetviz.config import config
label_desc: Use image node_id 7 for calling the DataframeReport obj's underlying member method code with example usage: obj.get_sanitized_bool_series(source) and returns: unknown