code: def test_load_labeltable():
      img6 = load(DATA_FILE6)
      # Round trip
      with InTemporaryDirectory():
          save(img6, "test.gii")
          bimg = load("test.gii")
      for img in (img6, bimg):
          assert_array_almost_equal(
              img.darrays[0].data[:3], DATA_FILE6_darr1
          )
          assert len(img.labeltable.labels) == 36
          labeldict = img.labeltable.get_labels_as_dict()
          assert 660700 in labeldict
          assert labeldict[660700] == "entorhinal"
          assert img.labeltable.labels[1].key == 2647065
          assert img.labeltable.labels[1].red == 0.0980392
          assert img.labeltable.labels[1].green == 0.392157
          assert img.labeltable.labels[1].blue == 0.156863
          assert img.labeltable.labels[1].alpha == 1
  
imports: import shutil
  import sys
  import warnings
  from os.path import basename, dirname
  from os.path import join
  from unittest import mock
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from ...loadsave import load, save
  from ...nifti1 import xform_codes
  from ...testing import clear_and_catch_warnings, suppress_warnings
  from ...tmpdirs import InTemporaryDirectory
  from ..None import gifti
  from ..parse_gifti_fast import GiftiImageParser, GiftiParseError
  from ..util import gifti_endian_codes
label_desc: Use image node_id 15 for calling a global function with example usage: test_load_labeltable() without return types