code: def test_heat_map():
      np.random.seed(3141592)
      data = np.random.normal(size=(100, 2)) * np.array(
          [[1, 1]]
      ) + np.array([[48, 5]])
      m = folium.Map([48.0, 5.0], zoom_start=6)
      hm = HeatMap(data)
      m.add_child(hm)
      m._repr_html_()
  
      out = normalize(m._parent.render())
  
      # We verify that the script import is present.
      script = '<script src="https://cdn.jsdelivr.net/gh/python-visualization/folium@main/folium/templates/leaflet_heat.min.js"></script>'  # noqa
      assert script in out
  
      # We verify that the script part is correct.
      tmpl = Template(
          """
              var {{this.get_name()}} = L.heatLayer(
                  {{this.data}},
                  {
                      minOpacity: {{this.min_opacity}},
                      maxZoom: {{this.max_zoom}},
                      radius: {{this.radius}},
                      blur: {{this.blur}},
                      gradient: {{this.gradient}}
                      })
                  .addTo({{this._parent.get_name()}});
      """
      )
  
      assert tmpl.render(this=hm)
  
      bounds = m.get_bounds()
      np.testing.assert_allclose(
          bounds,
          [
              [46.218566840847025, 3.0302801394447734],
              [50.75345011431167, 7.132453997672826],
          ],
      )
  
file_path: folium/tests/plugins/test_heat_map.py
imports: import numpy
  import pytest
  from jinja2 import Template
  import folium
  from folium.plugins import HeatMap
  from folium.utilities import normalize
label_desc: Use image node_id 1 for calling a global function with example usage: test_heat_map() without return types