code: def test_repr_mimebundle(renderer_str):
      pio.renderers.default = renderer_str
      fig = go.Figure()
      fig.update_layout(template=None)
      bundle = fig._repr_mimebundle_()
      renderer = pio.renderers[renderer_str]
      from plotly.io._renderers import MimetypeRenderer
  
      if isinstance(renderer, MimetypeRenderer):
          ref_bundle = renderer.to_mimebundle(fig.to_dict())
          for key in bundle:
              if "getElementById" in bundle[key]:
                  id1 = (
                      bundle[key]
                      .split('document.getElementById("')[1]
                      .split('")')[0]
                  )
                  id2 = (
                      ref_bundle[key]
                      .split('document.getElementById("')[1]
                      .split('")')[0]
                  )
                  assert bundle[key].replace(id1, "") == ref_bundle[
                      key
                  ].replace(id2, "")
      else:
          assert bundle == {}
  
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 19 for calling a global function with example usage: test_repr_mimebundle(renderer_str) without return types