code: def _get_metadata(raw_extras):
      """Get tracking mode, sfreq, eye tracked, pupil metric, etc.
  
      Don't call this until after _parse_recording_blocks.
      """
      meta_data = dict()
      meta_data["rec_info"] = raw_extras["event_lines"]["SAMPLES"][0]
      if ("LEFT" in meta_data["rec_info"]) and (
          "RIGHT" in meta_data["rec_info"]
      ):
          meta_data["tracking_mode"] = "binocular"
          meta_data["eye"] = "both"
      else:
          meta_data["tracking_mode"] = "monocular"
          meta_data["eye"] = meta_data["rec_info"][1].lower()
      meta_data["first_samp"] = float(
          raw_extras["event_lines"]["START"][0][0]
      )
      meta_data["sfreq"] = _get_sfreq_from_ascii(meta_data["rec_info"])
      meta_data["pupil_info"] = raw_extras["event_lines"]["PUPIL"][0]
      meta_data["n_blocks"] = len(raw_extras["event_lines"]["START"])
      return meta_data
  
imports: import re
  from datetime import datetime, timedelta, timezone
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import create_info
  from ...annotations import Annotations
  from ...utils import _check_pandas_installed, logger, warn
label_desc: Use image node_id 5 for calling a global function with example usage: _get_metadata(raw_extras) and returns: meta_data