code: def test_nonconsecutive():
      labels = np.array([0, 2, 4, 0])
      colors = [(1, 0, 0), (0, 0, 1)]
      rout = np.array(
          [
              (1.0, 0.0, 0.0),
              (0.0, 0.0, 1.0),
              (1.0, 0.0, 0.0),
              (1.0, 0.0, 0.0),
          ]
      )
      assert_array_almost_equal(
          rout,
          label2rgb(
              labels, colors=colors, alpha=1, image_alpha=1, bg_label=-1
          ),
      )
  
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 11 for calling a global function with example usage: test_nonconsecutive() without return types