code: def test_validate_heatmap(boxl):
      # wrong type
      with pytest.raises(TypeError):
          _validate_heatmap(boxl)
      # out of lower bound
      with pytest.raises(ValueError):
          _validate_heatmap(np.array([-0.001]))
      # out of upper bound
      with pytest.raises(ValueError):
          _validate_heatmap(np.array([1.001]))
  
imports: import pytest
  import numpy
  from eli5.base import Explanation, TargetExplanation
  from eli5.formatters.image import format_as_image, heatmap_to_image, expand_heatmap, _validate_heatmap, _update_alpha, _cap_alpha, _overlay_heatmap
  from .utils_image import assert_pixel_by_pixel_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_validate_heatmap(boxl) without return types