<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copyto_file_object(self, query, file_object):
 """ Gets data from a table into a writable file object :type query: str :param file_object: A file-like object. Normally the return value of open('file.ext', 'wb') :type file_object: file :raise CartoException: """

        response = self.copyto(query)
        for block in response.iter_content(DEFAULT_CHUNK_SIZE):
            file_object.write(block)