code: def render(self, **kwargs):
          
          figure = self.get_root()
          assert isinstance(figure, Figure), ('You cannot render this Element '
                                              'if it is not in a Figure.')
  
          header = self._template.module.__dict__.get('header', None)
          if header is not None:
              figure.header.add_child(Element(header(self, kwargs)),
                                      name=self.get_name())
  
          html = self._template.module.__dict__.get('html', None)
          if html is not None:
              figure.html.add_child(Element(html(self, kwargs)),
                                    name=self.get_name())
  
          script = self._template.module.__dict__.get('script', None)
          if script is not None:
              figure.script.add_child(Element(script(self, kwargs)),
                                      name=self.get_name())
  
          for name, element in self._children.items():
              element.render(**kwargs)
docs: Renders the HTML representation of the element.