class_docstr: Test class for the Folium library.
class_docstr_tok: ["Test","class","for","the","Folium","library","."]
docstr: Test CustomIcon.
docstr_tok: ["Test","CustomIcon","."]
code: def test_custom_icon(self):
      """Test CustomIcon."""
      icon_image = "http://leafletjs.com/docs/images/leaf-green.png"
      shadow_image = "http://leafletjs.com/docs/images/leaf-shadow.png"
  
      self.m = folium.Map([45, -100], zoom_start=4)
      i = folium.features.CustomIcon(
          icon_image,
          icon_size=(38, 95),
          icon_anchor=(22, 94),
          shadow_image=shadow_image,
          shadow_size=(50, 64),
          shadow_anchor=(4, 62),
          popup_anchor=(-3, -76),
      )
      mk = folium.Marker(
          [45, -100], icon=i, popup=folium.Popup("Hello")
      )
      self.m.add_child(mk)
      self.m._parent.render()
  
      bounds = self.m.get_bounds()
      assert bounds == [[45, -100], [45, -100]], bounds
  
imports: import json
  import os
  import branca.element
  import geopandas
  import jinja2
  import numpy
  import pandas
  import pytest
  import xyzservices.providers
  from jinja2 import Environment, PackageLoader
  from jinja2.utils import htmlsafe_json_dumps
  import folium
  from folium import TileLayer
  from folium.features import Choropleth, GeoJson
label_desc: Use image node_id 16 for calling the TestFolium obj's underlying member method code with example usage: obj.test_custom_icon() without return types