code: def _read_teeg(f, teeg_offset):
      """
      Read TEEG structure from an open CNT file.
  
      # from TEEG structure in http://paulbourke.net/dataformats/eeg/
      typedef struct {
         char Teeg;       /* Either 1 or 2                    */
         long Size;       /* Total length of all the events   */
         long Offset;     /* Hopefully always 0               */
      } TEEG;
      """
      # we use a more descriptive names based on TEEG doc comments
      Teeg = namedtuple("Teeg", "event_type total_length offset")
      teeg_parser = Struct("<Bll")
  
      f.seek(teeg_offset)
      return Teeg(*teeg_parser.unpack(f.read(teeg_parser.size)))
  
file_path: mne-python/mne/io/cnt/_utils.py
imports: from collections import namedtuple
  from datetime import datetime
  from math import modf
  from os import SEEK_END
  from struct import Struct
  import numpy
  from ...utils import warn
label_desc: Use image node_id 1 for calling a global function with example usage: _read_teeg(f, teeg_offset) and returns: Teeg