<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def post_video(self, videoUrl, name=None, ingestMedia=True):
        '''Post and optionally ingest media from the specified URL'''
        if name is None:
            name = os.path.basename(videoUrl)

        url = '/videos'
        data = {'name': name}
        new_video = self._make_request(self.CMS_Server, 'POST', url, data=data)
        if ingestMedia:
            self.ingest_video(new_video['id'], videoUrl)
        return new_video