code: def test_image_alpha():
      image = np.random.uniform(size=(1, 3))
      label = np.arange(3).reshape(1, -1)
      colors = [(1, 0, 0), (0, 1, 0), (0, 0, 1)]
      # If we set `image_alpha = 0`, then rgb should match label colors exactly.
      rgb = label2rgb(
          label,
          image=image,
          colors=colors,
          alpha=1,
          image_alpha=0,
          bg_label=-1,
      )
      assert_array_almost_equal(rgb, [colors])
  
imports: import itertools
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_no_warnings, assert_warns
  from skimage._shared.testing import expected_warnings
  from skimage.color.colorconv import hsv2rgb, rgb2hsv
  from skimage.color.colorlabel import label2rgb
label_desc: Use image node_id 7 for calling a global function with example usage: test_image_alpha() without return types