code: def _get_info(eeg, *, eog, montage_units):
      """Get measurement info."""
      # add the ch_names and info['chs'][idx]['loc']
      if not isinstance(eeg.chanlocs, np.ndarray) and eeg.nbchan == 1:
          eeg.chanlocs = [eeg.chanlocs]
  
      if isinstance(eeg.chanlocs, dict):
          eeg.chanlocs = _dol_to_lod(eeg.chanlocs)
  
      eeg_has_ch_names_info = len(eeg.chanlocs) > 0
  
      if eeg_has_ch_names_info:
          has_pos = _eeg_has_montage_information(eeg)
          ch_names, ch_types, eeg_montage = _get_montage_information(
              eeg, has_pos, montage_units=montage_units
          )
          update_ch_names = False
      else:  # if eeg.chanlocs is empty, we still need default chan names
          ch_names = ["EEG %03d" % ii for ii in range(eeg.nbchan)]
          ch_types = "eeg"
          eeg_montage = None
          update_ch_names = True
  
      info = create_info(ch_names, sfreq=eeg.srate, ch_types=ch_types)
  
      eog = (
          _find_channels(ch_names, ch_type="EOG")
          if eog == "auto"
          else eog
      )
      for idx, ch in enumerate(info["chs"]):
          ch["cal"] = CAL
          if ch["ch_name"] in eog or idx in eog:
              ch["coil_type"] = FIFF.FIFFV_COIL_NONE
              ch["kind"] = FIFF.FIFFV_EOG_CH
  
      return info, eeg_montage, update_ch_names
  
imports: import os.path
  from os import PathLike
  from pathlib import Path
  import numpy
  from mne.utils.check import _check_option
  from ..._fiff._digitization import _ensure_fiducials_head
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import create_info
  from ..._fiff.pick import _PICK_TYPES_KEYS
  from ..._fiff.utils import _find_channels, _read_segments_file
  from ...annotations import Annotations, read_annotations
  from ...channels import make_dig_montage
  from ...defaults import DEFAULTS
  from ...epochs import BaseEpochs
  from ...event import read_events
  from ...utils import Bunch, _check_fname, _check_head_radius, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from ._eeglab import _readmat
label_desc: Use image node_id 6 for calling a global function with example usage: _get_info(eeg) and returns: info,  eeg_montage,  update_ch_names