code: def test_notebook(filepath, driver):
      if "WmsTimeDimension" in filepath:
          pytest.xfail(
              "WmsTimeDimension.ipynb external resource makes this test flaky"
          )
      for filepath_html in get_notebook_html(filepath):
          driver.get_file(filepath_html)
          try:
              assert driver.wait_until(".folium-map")
          except UnexpectedAlertPresentException:
              # in Plugins.ipynb we get an alert about geolocation permission
              # for some reason it cannot be closed or avoided, so just ignore it
              print("skipping", filepath_html, "because of alert")
              continue
          driver.verify_js_logs()
  
file_path: folium/tests/selenium/test_selenium.py
imports: import base64
  import glob
  import os
  import subprocess
  from html.parser import HTMLParser
  from urllib.parse import unquote
  import nbconvert
  import pytest
  from selenium.common.exceptions import UnexpectedAlertPresentException
  from folium.utilities import temp_html_filepath
label_desc: Use image node_id 2 for calling a global function with example usage: test_notebook(filepath, driver) without return types