<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def download(self, file_to_be_downloaded, perform_download=True, download_to_path=None):
 """ file_to_be_downloaded is a file-like object that has already been uploaded, you cannot download folders """

        response = self.get(
            '/path/data/', file_to_be_downloaded, raw=False)
        if not perform_download:
            # The caller can decide how to process the download of the data
            return response
        if not download_to_path:
            download_to_path = file_to_be_downloaded.split("/")[-1]
        # download uses shutil.copyfileobj to download, which copies
        # the data in chunks
        o = open(download_to_path, 'wb')
        return shutil.copyfileobj(response.raw, o)