code: def test_gifti_label_rgba():
      rgba = rng.random(4)
      kwargs = dict(zip(["red", "green", "blue", "alpha"], rgba))
  
      gl1 = GiftiLabel(**kwargs)
      assert_array_equal(rgba, gl1.rgba)
  
      gl1.red = 2 * gl1.red
      assert not np.allclose(
          rgba, gl1.rgba
      )  # don't just store the list!
  
      gl2 = GiftiLabel()
      gl2.rgba = rgba
      assert_array_equal(rgba, gl2.rgba)
  
      gl2.blue = 2 * gl2.blue
      assert not np.allclose(
          rgba, gl2.rgba
      )  # don't just store the list!
  
      def assign_rgba(gl, val):
          gl.rgba = val
  
      gl3 = GiftiLabel(**kwargs)
      pytest.raises(ValueError, assign_rgba, gl3, rgba[:2])
      pytest.raises(
          ValueError, assign_rgba, gl3, rgba.tolist() + rgba.tolist()
      )
  
      # Test default value
      gl4 = GiftiLabel()
      assert len(gl4.rgba) == 4
      assert np.all([elem is None for elem in gl4.rgba])
  
imports: import itertools
  import sys
  import warnings
  from io import BytesIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nibabel.tmpdirs import InTemporaryDirectory
  from ...None import load
  from ...fileholders import FileHolder
  from ...nifti1 import data_type_codes
  from ...testing import get_test_data
  from ..None import GiftiCoordSystem, GiftiDataArray, GiftiImage, GiftiLabel, GiftiLabelTable, GiftiMetaData, GiftiNVPairs
  from .test_parse_gifti_fast import DATA_FILE1, DATA_FILE2, DATA_FILE3, DATA_FILE4, DATA_FILE5, DATA_FILE6
label_desc: Use image node_id 11 for calling a global function with example usage: test_gifti_label_rgba() without return types