code: def _export_epochs(fname, epochs):
      _check_eeglabio_installed()
      # load data first
      epochs.load_data()
  
      # remove extra epoc and STI channels
      drop_chs = ["epoc", "STI 014"]
      ch_names = [ch for ch in epochs.ch_names if ch not in drop_chs]
      cart_coords = _get_als_coords_from_chs(
          epochs.info["chs"], drop_chs
      )
  
      if epochs.annotations:
          annot = [
              epochs.annotations.description,
              epochs.annotations.onset,
              epochs.annotations.duration,
          ]
      else:
          annot = None
  
      eeglabio.epochs.export_set(
          fname,
          data=epochs.get_data(picks=ch_names),
          sfreq=epochs.info["sfreq"],
          events=epochs.events,
          tmin=epochs.tmin,
          tmax=epochs.tmax,
          ch_names=ch_names,
          event_id=epochs.event_id,
          ch_locs=cart_coords,
          annotations=annot,
      )
  
imports: import numpy
  from ..utils import _check_eeglabio_installed
  import eeglabio.epochs
  import eeglabio.raw
label_desc: Use image node_id 2 for calling a global function with example usage: _export_epochs(fname, epochs) without return types