code: def _export_raw(fname, raw):
      # load data first
      raw.load_data()
  
      # remove extra epoc and STI channels
      drop_chs = ["epoc"]
      # filenames attribute of RawArray is filled with None
      if raw.filenames[0] and not (raw.filenames[0].endswith(".fif")):
          drop_chs.append("STI 014")
  
      ch_names = [ch for ch in raw.ch_names if ch not in drop_chs]
      cart_coords = _get_als_coords_from_chs(raw.info["chs"], drop_chs)
  
      annotations = [
          raw.annotations.description,
          raw.annotations.onset,
          raw.annotations.duration,
      ]
      eeglabio.raw.export_set(
          fname,
          data=raw.get_data(picks=ch_names),
          sfreq=raw.info["sfreq"],
          ch_names=ch_names,
          ch_locs=cart_coords,
          annotations=annotations,
      )
  
imports: import numpy
  from ..utils import _check_eeglabio_installed
  import eeglabio.epochs
  import eeglabio.raw
label_desc: Use image node_id 1 for calling a global function with example usage: _export_raw(fname, raw) without return types