code: def _create_info(ch_names, raw_extras):
      """Create info object for RawEyelink."""
      # assign channel type from ch_name
      pos_names = (
          EYELINK_COLS["pos"]["left"][:-1]
          + EYELINK_COLS["pos"]["right"][:-1]
      )
      pupil_names = (
          EYELINK_COLS["pos"]["left"][-1]
          + EYELINK_COLS["pos"]["right"][-1]
      )
      ch_types = [
          "eyegaze"
          if ch in pos_names
          else "pupil"
          if ch in pupil_names
          else "stim"
          if ch == "DIN"
          else "misc"
          for ch in ch_names
      ]
      info = create_info(ch_names, raw_extras["sfreq"], ch_types)
      # set correct loc for eyepos and pupil channels
      for ch_dict in info["chs"]:
          # loc index 3 can indicate left or right eye
          if ch_dict["ch_name"].endswith("left"):  # [x,y,pupil]_left
              ch_dict["loc"][3] = -1  # left eye
          elif ch_dict["ch_name"].endswith(
              "right"
          ):  # [x,y,pupil]_right
              ch_dict["loc"][3] = 1  # right eye
          else:
              logger.debug(
                  f"leaving index 3 of loc array as"
                  f" {ch_dict['loc'][3]} for {ch_dict['ch_name']}"
              )
          # loc index 4 can indicate x/y coord
          if ch_dict["ch_name"].startswith("x"):
              ch_dict["loc"][4] = -1  # x-coord
          elif ch_dict["ch_name"].startswith("y"):
              ch_dict["loc"][4] = 1  # y-coord
          else:
              logger.debug(
                  f"leaving index 4 of loc array as"
                  f" {ch_dict['loc'][4]} for {ch_dict['ch_name']}"
              )
          if "HREF" in raw_extras["rec_info"]:
              if ch_dict["ch_name"].startswith(("xpos", "ypos")):
                  ch_dict["unit"] = FIFF.FIFF_UNIT_RAD
      return info
  
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 20 for calling a global function with example usage: _create_info(ch_names, raw_extras) and returns: info