code: def generate_html_summary_numeric(
      feature_dict: dict, compare_dict: dict
  ):
      template = jinja2_env.get_template("feature_summary_numeric.html")
      group_1, group_2 = create_summary_numeric_group_data(
          feature_dict, compare_dict
      )
  
      # Edge case fix for if there is only data in the compare
      if compare_dict is not None:
          if (
              np.isnan(feature_dict["stats"]["range"])
              and np.isnan(compare_dict["stats"]["range"]) == False
          ):
              feature_dict["stats"]["range"] = compare_dict["stats"][
                  "range"
              ]
  
      # NEW: Move numbers if there is not enough room
      def formatted_range(val):
          if isinstance(val, str):
              return ""
          return sweetviz.sv_html_formatters.fmt_smart_range(
              val, feature_dict["stats"]["range"]
          )
  
      longest = max([len(formatted_range(x["value"])) for x in group_1])
      if longest > 7:
          group_1_width_suffix = "-wide"
      else:
          group_1_width_suffix = ""
  
      def formatted(val):
          if isinstance(val, str):
              return ""
          return sweetviz.sv_html_formatters.fmt_smart(val)
  
      longest = max([len(formatted(x["value"])) for x in group_2])
      if longest > 7:
          group_2_width_suffix = "-wide"
      else:
          group_2_width_suffix = ""
  
      output = template.render(
          feature_dict=feature_dict,
          compare_dict=compare_dict,
          group_1=group_1,
          group_2=group_2,
          group_1_width_suffix=group_1_width_suffix,
          group_2_width_suffix=group_2_width_suffix,
      )
      return output
  
imports: import numpy
  import html
  from operator import itemgetter
  from jinja2 import Environment, PackageLoader
  import sweetviz.sv_html_formatters
  from sweetviz.config import config
  from sweetviz.sv_types import NumWithPercent, FeatureType, OTHERS_GROUPED
  from sweetviz.graph_associations import CORRELATION_ERROR
  from sweetviz.graph_associations import CORRELATION_IDENTICAL
  from functools import cmp_to_key
label_desc: Use image node_id 8 for calling a global function with example usage: generate_html_summary_numeric(feature_dict, compare_dict) and returns: output, sweetviz, sweetviz, str, str