code: def _read_annot_ctab_new_format(fobj, ctab_version):
      """Read in a new-style Freesurfer color table from `fobj`.
  
      Note that the output color table ``ctab`` is in RGBT form, where T
      (transparency) is 255 - alpha.
  
      This function is used by :func:`read_annot`.
  
      Parameters
      ----------
  
      fobj : file-like
          Open file handle to a Freesurfer `.annot` file, with seek point
          at the beginning of the color table data.
      ctab_version : int
          Color table format version - must be equal to 2
  
      Returns
      -------
  
      ctab : ndarray, shape (n_labels, 5)
          RGBT colortable array - the last column contains all zeros.
      names : list of str
          The names of the labels. The length of the list is n_labels.
      """
      assert hasattr(fobj, "read")
  
      dt = _ANNOT_DT
      # This code works with a file version == 2, nothing else
      if ctab_version != 2:
          raise Exception(
              "Unrecognised .annot file version (%i)", ctab_version
          )
      # maximum LUT index present in the file
      max_index = np.fromfile(fobj, dt, 1)[0]
      ctab = np.zeros((max_index, 5), dt)
      # orig_tab string length + string
      length = np.fromfile(fobj, dt, 1)[0]
      np.fromfile(fobj, "|S%d" % length, 1)[0]  # Orig table path
      # number of LUT entries present in the file
      entries_to_read = np.fromfile(fobj, dt, 1)[0]
      names = list()
      for _ in range(entries_to_read):
          # index of this entry
          idx = np.fromfile(fobj, dt, 1)[0]
          # structure name length + string
          name_length = np.fromfile(fobj, dt, 1)[0]
          name = np.fromfile(fobj, "|S%d" % name_length, 1)[0]
          names.append(name)
          # RGBT
          ctab[idx, :4] = np.fromfile(fobj, dt, 4)
  
      return ctab, names
  
file_path: nibabel/nibabel/freesurfer/io.py
imports: import getpass
  import time
  import warnings
  from collections import OrderedDict
  import numpy
  from ..openers import Opener
label_desc: Use image node_id 11 for calling a global function with example usage: _read_annot_ctab_new_format(fobj, ctab_version) and returns: ctab,  names