class_docstr: Parse standard brainvision events, accounting for non-standard ones.
class_docstr_tok: ["Parse","standard","brainvision","events",",","accounting","for","non-standard","ones","."]
docstr: Parse BrainVision event codes (like `Stimulus/S 11`) to ints.
docstr_tok: ["Parse","BrainVision","event","codes","(","like","`","Stimulus\/S","11","`",")","to","ints","."]
code: def __call__(self, description):
      """Parse BrainVision event codes (like `Stimulus/S 11`) to ints."""
      offsets = _BV_EVENT_IO_OFFSETS
  
      maybe_digit = description[-3:].strip()
      kind = description[:-3]
      if maybe_digit.isdigit() and kind in offsets:
          code = int(maybe_digit) + offsets[kind]
      elif description in _OTHER_ACCEPTED_MARKERS:
          code = _OTHER_ACCEPTED_MARKERS[description]
      else:
          code = super().__call__(description, offset=_OTHER_OFFSET)
      return code
  
imports: import configparser
  import os
  import os.path
  import re
  from datetime import datetime, timezone
  from io import StringIO
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _mult_cal_one, _read_segments_file
  from ...annotations import Annotations, read_annotations
  from ...channels import make_dig_montage
  from ...defaults import HEAD_SIZE_DEFAULT
  from ...transforms import _sph_to_cart
  from ...utils import _DefaultEventParser, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
label_desc: Use image node_id 1 for calling the _BVEventParser obj's underlying member method code with example usage: obj.__call__(description) and returns: code