<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(self, savefile):
 """Do the TTS API request and write result to file. Args: savefile (string):
 The path and file name to save the ``mp3`` to. Raises: :class:`gTTSError`: When there's an error with the API request. """

        with open(str(savefile), 'wb') as f:
            self.write_to_fp(f)
            log.debug("Saved to %s", savefile)