code: def test_polygon_marker():
      m = Map()
      locations = [
          [35.6636, 139.7634],
          [35.6629, 139.7664],
          [35.6663, 139.7706],
          [35.6725, 139.7632],
          [35.6728, 139.7627],
          [35.6720, 139.7606],
          [35.6682, 139.7588],
          [35.6663, 139.7627],
      ]
      polygon = Polygon(locations=locations, popup="I am a polygon")
      polygon.add_to(m)
  
      expected_options = {
          "bubblingMouseEvents": True,
          "color": "#3388ff",
          "dashArray": None,
          "dashOffset": None,
          "fill": False,
          "fillColor": "#3388ff",
          "fillOpacity": 0.2,
          "fillRule": "evenodd",
          "lineCap": "round",
          "lineJoin": "round",
          "noClip": False,
          "opacity": 1.0,
          "smoothFactor": 1.0,
          "stroke": True,
          "weight": 3,
      }
  
      m._repr_html_()
      expected_rendered = f"""
      var {polygon.get_name()} = L.polygon(
      {locations},
      {{
      "bubblingMouseEvents": true,
      "color": "#3388ff",
      "dashArray": null,
      "dashOffset": null,
      "fill": false,
      "fillColor": "#3388ff",
      "fillOpacity": 0.2,
      "fillRule": "evenodd",
      "lineCap": "round",
      "lineJoin": "round",
      "noClip": false,
      "opacity": 1.0,
      "smoothFactor": 1.0,
      "stroke": true,
      "weight": 3
      }}
      )
      .addTo({m.get_name()});
      """
  
      rendered = polygon._template.module.script(polygon)
      assert normalize(rendered) == normalize(expected_rendered)
      assert polygon.get_bounds() == get_bounds(locations)
      assert json.dumps(polygon.to_dict()) == polygon.to_json()
      assert polygon.options == expected_options
  
file_path: folium/tests/test_vector_layers.py
imports: import json
  from folium import Map
  from folium.utilities import get_bounds, normalize
  from folium.vector_layers import Circle, CircleMarker, Polygon, PolyLine, Rectangle, path_options
label_desc: Use image node_id 4 for calling a global function with example usage: test_polygon_marker() without return types