code: def test_heat_map_exception():
      with pytest.raises(ValueError):
          HeatMap(np.array([[4, 5, 1], [3, 6, np.nan]]))
      with pytest.raises(Exception):
          HeatMap(np.array([3, 4, 5]))
  
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 3 for calling a global function with example usage: test_heat_map_exception() without return types