code: def test_repr_html(renderer):
      pio.renderers.default = renderer
      fig = go.Figure()
      fig.update_layout(template=None)
      str_html = fig._repr_html_()
      bundle = fig._repr_mimebundle_()
      # id number of figure
      id_html = str_html.split('document.getElementById("')[1].split(
          '")'
      )[0]
      id_pattern = "cd462b94-79ce-42a2-887f-2650a761a144"
      template = (
          '<div>                        <script type="text/javascript">'
          "window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n        "
          '<script charset="utf-8" src="'
          + plotly_cdn_url()
          + '"></script>                '
          '<div id="cd462b94-79ce-42a2-887f-2650a761a144" class="plotly-graph-div" '
          'style="height:100%; width:100%;"></div>            <script type="text/javascript">'
          "                                    window.PLOTLYENV=window.PLOTLYENV || {};"
          '                                    if (document.getElementById("cd462b94-79ce-42a2-887f-2650a761a144"))'
          ' {                    Plotly.newPlot(                        "cd462b94-79ce-42a2-887f-2650a761a144",'
          '                        [],                        {"template":{}},'
          '                        {"responsive": true}                    )                };'
          "                            </script>        </div>"
      )
      if "text/html" in bundle:
          str_bundle = bundle["text/html"]
          id_bundle = str_bundle.split('document.getElementById("')[
              1
          ].split('")')[0]
          assert str_html.replace(id_html, "") == str_bundle.replace(
              id_bundle, ""
          )
      else:
          assert str_html.replace(id_html, "") == template.replace(
              id_pattern, ""
          )
  
imports: import json
  import sys
  import base64
  import threading
  import time
  import pytest
  import requests
  import numpy
  import webbrowser
  import plotly.graph_objs
  import plotly.io
  from plotly.offline import get_plotlyjs
  from plotly.io._utils import plotly_cdn_url
label_desc: Use image node_id 18 for calling a global function with example usage: test_repr_html(renderer) without return types