code: def analyze(to_process: FeatureToProcess, feature_dict: dict):
      compare_dict = feature_dict.get("compare")
      feature_dict["stats"] = dict()
      if compare_dict:
          compare_dict["stats"] = dict()
  
      do_detail_text(to_process, feature_dict)
  
      if to_process.is_target():
          raise ValueError
      else:
          feature_dict[
              "html_summary"
          ] = sv_html.generate_html_summary_text(
              feature_dict, compare_dict
          )
  
imports: import html
  import sweetviz.sv_html
  from sweetviz.sv_types import NumWithPercent, FeatureToProcess
label_desc: Use image node_id 2 for calling a global function with example usage: analyze(to_process, feature_dict) without return types