class_docstr: Internal class for formatting output data in html.
  This class is intended for shared functionality between
  DataFrame.to_html() and DataFrame._repr_html_().
  Any logic in common with other output formatting methods
  should ideally be inherited from classes in format.py
  and this class responsible for only producing html markup.
code: def render(self) -> list[str]:
      self._write_table()
  
      if self.should_show_dimensions:
          by = chr(215)  # ×
          self.write(
              f"<p>{len(self.frame)} rows {by} {len(self.frame.columns)} columns</p>"
          )
  
      return self.elements
  
imports: from __future__ import annotations
  from textwrap import dedent
  from typing import Any, Final, Hashable, Iterable, Mapping, cast
  from pandas._config import get_option
  from pandas._libs import lib
  from pandas import MultiIndex, option_context
  from pandas.io.common import is_url
  from pandas.io.formats.format import DataFrameFormatter, get_level_lengths
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 3 for calling the HTMLFormatter obj's underlying member method code with example usage: obj.render() and returns: self