code: def test_geojson_tooltip():
      m = folium.Map([30.5, -97.5], zoom_start=10)
      folium.GeoJson(
          os.path.join(rootpath, "kuntarajat.geojson"),
          tooltip=folium.GeoJsonTooltip(fields=["code", "name"]),
      ).add_to(m)
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("always")
          m._repr_html_()
          assert issubclass(
              w[-1].category, UserWarning
          ), "GeoJsonTooltip GeometryCollection test failed."
  
imports: import json
  import os
  import warnings
  import pytest
  from branca.element import Element
  import folium
  from folium import Choropleth, ClickForMarker, GeoJson, Map, Popup
label_desc: Use image node_id 11 for calling a global function with example usage: test_geojson_tooltip() without return types