code: def components():
      """Extract map components and put those on a page."""
      m = folium.Map(
          width=800,
          height=600,
      )
  
      m.get_root().render()
      header = m.get_root().header.render()
      body_html = m.get_root().html.render()
      script = m.get_root().script.render()
  
      return render_template_string(
          """
              <!DOCTYPE html>
              <html>
                  <head>
                      {{ header|safe }}
                  </head>
                  <body>
                      <h1>Using components</h1>
                      {{ body_html|safe }}
                      <script>
                          {{ script|safe }}
                      </script>
                  </body>
              </html>
          """,
          header=header,
          body_html=body_html,
          script=script,
      )
  
imports: from flask import Flask, render_template_string
  import folium
label_desc: Use image node_id 3 for calling a global function with example usage: components() and returns: render_template_string