code: def generate_html_dataframe_page(dataframe_report):
      template = jinja2_env.get_template("dataframe_page.html")
      # Add in total page size (160 is hardcoded from the top of page-all-summaries in CSS)
      # This could be programmatically set
      dataframe_report.page_height = 160 + (
          dataframe_report.num_summaries
          * (config["Layout"].getint("summary_height_per_element"))
      )
      if dataframe_report.page_layout == "widescreen":
          padding_type = "full_page_padding_widescreen"
      else:
          padding_type = "full_page_padding_vertical"
      padding = config["Layout"].getint(padding_type)
      dataframe_report.page_height += padding
      # scaling = dict()
      # scaling["main_column"] = scale
      # scaling= scale
      output = template.render(
          dataframe=dataframe_report, version=sweetviz.__version__
      )
      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 4 for calling a global function with example usage: generate_html_dataframe_page(dataframe_report) and returns: output