code: def _get_bad_eeg_channels(info):
      """Return a list of bad EEG channels formatted for categories.xml.
  
      Given a list of only the EEG channels in file, return the indices of this
      list (starting at 1) that correspond to bad channels.
      """
      if len(info["bads"]) == 0:
          return []
      eeg_channels = pick_types(info, eeg=True, exclude=[])
      bad_channels = pick_channels(info["ch_names"], info["bads"])
      bads_elementwise = np.isin(eeg_channels, bad_channels)
      return list(np.flatnonzero(bads_elementwise) + 1)
  
file_path: mne-python/mne/export/_egimff.py
imports: import datetime
  import os
  import os.path
  import shutil
  import numpy
  from .._fiff.pick import pick_channels, pick_types
  from ..io.egi.egimff import _import_mffpy
  from ..utils import _check_fname, verbose, warn
label_desc: Use image node_id 3 for calling a global function with example usage: _get_bad_eeg_channels(info) and returns: list, list