code: def _set_dig_montage_in_init(self, montage):
      """Set EEG sensor configuration and head digitization from when init.
  
      This is done from the information within fname when
      read_raw_eeglab(fname) or read_epochs_eeglab(fname).
      """
      if montage is None:
          self.set_montage(None)
      else:
          missing_channels = set(self.ch_names) - set(montage.ch_names)
          ch_pos = dict(
              zip(
                  list(missing_channels),
                  np.full((len(missing_channels), 3), np.nan),
              )
          )
          self.set_montage(
              montage
              + make_dig_montage(ch_pos=ch_pos, coord_frame="head")
          )
  
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 7 for calling a global function with example usage: _set_dig_montage_in_init(montage) without return types