code: def _validate_data(raw_extras):
      """Check the incoming data for some known problems that can occur."""
      # Detect the datatypes that are in file.
      if "GAZE" in raw_extras["rec_info"]:
          logger.info(
              "Pixel coordinate data detected."
              "Pass `scalings=dict(eyegaze=1e3)` when using plot"
              " method to make traces more legible."
          )
  
      elif "HREF" in raw_extras["rec_info"]:
          logger.info("Head-referenced eye-angle (HREF) data detected.")
      elif "PUPIL" in raw_extras["rec_info"]:
          warn(
              "Raw eyegaze coordinates detected. Analyze with caution."
          )
      if "AREA" in raw_extras["pupil_info"]:
          logger.info("Pupil-size area detected.")
      elif "DIAMETER" in raw_extras["pupil_info"]:
          logger.info("Pupil-size diameter detected.")
      # If more than 1 recording period, check whether eye being tracked changed.
      if raw_extras["n_blocks"] > 1:
          if raw_extras["tracking_mode"] == "monocular":
              blocks_list = raw_extras["event_lines"]["SAMPLES"]
              eye_per_block = [
                  block_info[1].lower() for block_info in blocks_list
              ]
              if not all(
                  [
                      this_eye == raw_extras["eye"]
                      for this_eye in eye_per_block
                  ]
              ):
                  warn(
                      "The eye being tracked changed during the"
                      " recording. The channel names will reflect"
                      " the eye that was tracked at the start of"
                      " the recording."
                  )
  
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 3 for calling a global function with example usage: _validate_data(raw_extras) without return types