code: def _create_chs(
      ch_names, cals, ch_coil, ch_kind, eog, ecg, emg, misc
  ):
      """Initialize info['chs'] for eeg channels."""
      chs = list()
      for idx, ch_name in enumerate(ch_names):
          if ch_name in eog or idx in eog:
              coil_type = FIFF.FIFFV_COIL_NONE
              kind = FIFF.FIFFV_EOG_CH
          elif ch_name in ecg or idx in ecg:
              coil_type = FIFF.FIFFV_COIL_NONE
              kind = FIFF.FIFFV_ECG_CH
          elif ch_name in emg or idx in emg:
              coil_type = FIFF.FIFFV_COIL_NONE
              kind = FIFF.FIFFV_EMG_CH
          elif ch_name in misc or idx in misc:
              coil_type = FIFF.FIFFV_COIL_NONE
              kind = FIFF.FIFFV_MISC_CH
          else:
              coil_type = ch_coil
              kind = ch_kind
  
          chan_info = {
              "cal": cals[idx],
              "logno": idx + 1,
              "scanno": idx + 1,
              "range": 1.0,
              "unit_mul": FIFF.FIFF_UNITM_NONE,
              "ch_name": ch_name,
              "unit": FIFF.FIFF_UNIT_V,
              "coord_frame": FIFF.FIFFV_COORD_HEAD,
              "coil_type": coil_type,
              "kind": kind,
              "loc": np.zeros(12),
          }
          if coil_type == FIFF.FIFFV_COIL_EEG:
              chan_info["loc"][:3] = np.nan
          chs.append(chan_info)
      return chs
  
file_path: mne-python/mne/_fiff/utils.py
imports: import os
  import os.path
  import numpy
  from .constants import FIFF
  from .meas_info import _get_valid_units
label_desc: Use image node_id 8 for calling a global function with example usage: _create_chs(ch_names, cals, ch_coil, ch_kind, eog, ecg, emg, misc) and returns: chs