code: def save(self, filename):
          
          gz = filename.endswith('.gz')
          ligolw_utils.write_filename(self.outdoc, filename, gz=gz)
docs: Write this trigger to gracedb compatible xml format
  
          Parameters
          ----------
          filename: str
              Name of file to write to disk.