code: def export_raw(
      fname,
      raw,
      fmt="auto",
      physical_range="auto",
      add_ch_type=False,
      *,
      overwrite=False,
      verbose=None,
  ):
      """Export Raw to external formats.
  
      %(export_fmt_support_raw)s
  
      %(export_warning)s
  
      Parameters
      ----------
      %(fname_export_params)s
      raw : instance of Raw
          The raw instance to export.
      %(export_fmt_params_raw)s
      %(physical_range_export_params)s
      %(add_ch_type_export_params)s
      %(overwrite)s
  
          .. versionadded:: 0.24.1
      %(verbose)s
  
      Notes
      -----
      .. versionadded:: 0.24
  
      %(export_warning_note_raw)s
      %(export_eeglab_note)s
      %(export_edf_note)s
      """
      fname = str(_check_fname(fname, overwrite=overwrite))
      supported_export_formats = {  # format : (extensions,)
          "eeglab": ("set",),
          "edf": ("edf",),
          "brainvision": (
              "eeg",
              "vmrk",
              "vhdr",
          ),
      }
      fmt = _infer_check_export_fmt(
          fmt, fname, supported_export_formats
      )
  
      # check for unapplied projectors
      if any(not proj["active"] for proj in raw.info["projs"]):
          warn(
              "Raw instance has unapplied projectors. Consider applying "
              "them before exporting with raw.apply_proj()."
          )
  
      if fmt == "eeglab":
          from ._eeglab import _export_raw
  
          _export_raw(fname, raw)
      elif fmt == "edf":
          from ._edf import _export_raw
  
          _export_raw(fname, raw, physical_range, add_ch_type)
      elif fmt == "brainvision":
          from ._brainvision import _export_raw
  
          _export_raw(fname, raw, overwrite)
  
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 1 for calling a global function with example usage: export_raw(fname, raw, fmt, physical_range, add_ch_type) without return types