code: def export_epochs(
      fname, epochs, fmt="auto", *, overwrite=False, verbose=None
  ):
      """Export Epochs to external formats.
  
      %(export_fmt_support_epochs)s
  
      %(export_warning)s
  
      Parameters
      ----------
      %(fname_export_params)s
      epochs : instance of Epochs
          The epochs to export.
      %(export_fmt_params_epochs)s
      %(overwrite)s
  
          .. versionadded:: 0.24.1
      %(verbose)s
  
      Notes
      -----
      .. versionadded:: 0.24
  
      %(export_warning_note_epochs)s
      %(export_eeglab_note)s
      """
      fname = str(_check_fname(fname, overwrite=overwrite))
      supported_export_formats = {
          "eeglab": ("set",),
      }
      fmt = _infer_check_export_fmt(
          fmt, fname, supported_export_formats
      )
  
      # check for unapplied projectors
      if any(not proj["active"] for proj in epochs.info["projs"]):
          warn(
              "Epochs instance has unapplied projectors. Consider applying "
              "them before exporting with epochs.apply_proj()."
          )
  
      if fmt == "eeglab":
          from ._eeglab import _export_epochs
  
          _export_epochs(fname, epochs)
  
imports: import os.path
  from ..utils import _check_fname, _validate_type, logger, verbose, warn
  from ._egimff import export_evokeds_mff
label_desc: Use image node_id 2 for calling a global function with example usage: export_epochs(fname, epochs, fmt) without return types