obspy.core.util.misc.CaptureIO.write

CaptureIO.write(text, /)