mne.
write_source_spaces
Write source spaces to a file.
fname : str
The name of the file, which should end with -src.fif or -src.fif.gz.
src : SourceSpaces
The source spaces (as returned by read_source_spaces).
overwrite : bool
If True, the destination file (if it exists) will be overwritten. If False (default), an error will be raised if the file exists.
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose() and Logging documentation for more).
mne.verbose()
See also
read_source_spaces