code: def _determine_tri_idxs(trigger):
      """Determine tri file indexes for frame and description."""
      if len(trigger) == 12:
          # Aurora version 2021.9.6 or greater
          trigger_frame_idx = 7
          desc_idx = 10
      elif len(trigger) == 9:
          # Aurora version 2021.9.5 or earlier
          trigger_frame_idx = 7
          desc_idx = 8
      else:
          raise RuntimeError("Unable to read trigger file.")
  
      return trigger_frame_idx, desc_idx
  
imports: import datetime
  import glob
  import json
  import os.path
  import re
  from configparser import ConfigParser, RawConfigParser
  import numpy
  from scipy.io import loadmat
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _format_dig_points, create_info
  from ..._fiff.utils import _mult_cal_one
  from ..._freesurfer import get_mni_fiducials
  from ...annotations import Annotations
  from ...transforms import _get_trans, apply_trans
  from ...utils import _check_fname, _check_option, _mask_to_onsets_offsets, _validate_type, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from ._localized_abbr import _localized_abbr
label_desc: Use image node_id 5 for calling a global function with example usage: _determine_tri_idxs(trigger) and returns: trigger_frame_idx,  desc_idx