code: def test_missing_webbrowser_module(fig1):
      """
      Assert that no errors occur if the webbrowser module is absent
      """
      import builtins
  
      realimport = builtins.__import__
  
      def webbrowser_absent_import(
          name, globals, locals, fromlist, level
      ):
          """
          Mimick an absent webbrowser module
          """
          if name == "webbrowser":
              raise ImportError
          return realimport(name, globals, locals, fromlist, level)
  
      with mock.patch("builtins.__import__", webbrowser_absent_import):
          # 1: check whether importing webbrowser actually results in an ImportError
          with pytest.raises(ImportError):
              import webbrowser
  
          # 2: check whether the _repr_html_ can handle it regardless
          fig1._repr_html_()
  
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 21 for calling a global function with example usage: test_missing_webbrowser_module(fig1) and returns: realimport