code: def add_series_base_stats_to_dict(
      series: pd.Series, counts: dict, updated_dict: dict
  ) -> dict:
      updated_dict["stats"] = dict()
      updated_dict["base_stats"] = dict()
      base_stats = updated_dict["base_stats"]
      num_total = counts["num_rows_total"]
      try:
          num_zeros = series[series == 0].count()
      except TypeError:
          num_zeros = 0
      non_nan = counts["num_rows_with_data"]
      base_stats["total_rows"] = num_total
      base_stats["num_values"] = NumWithPercent(non_nan, num_total)
      base_stats["num_missing"] = NumWithPercent(
          num_total - non_nan, num_total
      )
      base_stats["num_zeroes"] = NumWithPercent(num_zeros, num_total)
      base_stats["num_distinct"] = NumWithPercent(
          counts["distinct_count_without_nan"], num_total
      )
  
file_path: sweetviz/sweetviz/series_analyzer.py
imports: import pandas
  from sweetviz.sv_types import NumWithPercent, FeatureType, FeatureToProcess
  from sweetviz.type_detection import determine_feature_type
  import sweetviz.series_analyzer_numeric
  import sweetviz.series_analyzer_cat
  import sweetviz.series_analyzer_text
  from distutils.version import LooseVersion
label_desc: Use image node_id 3 for calling a global function with example usage: add_series_base_stats_to_dict(series, counts, updated_dict) without return types