code: def render(self, **kwargs) -> str:
      nav_items = [
          (section.name, section.anchor_id)
          for section in self.content["body"].content["items"]
      ]
  
      return templates.template("report.html").render(
          **self.content, nav_items=nav_items, **kwargs
      )
  
imports: from ydata_profiling.report.presentation.core.root import Root
  from ydata_profiling.report.presentation.flavours.html import templates
label_desc: Use image node_id 1 for calling the HTMLRoot obj's underlying member method code with example usage: obj.render() and returns: templates