def download(self, resource, filename, **kw):
        """
        Start and return a Download Task
        
        :rtype: DownloadTask(TaskOperationPoller)
        """
        params = kw.pop('params', {})
        task = self.make_request(
            TaskRunFailed,
            method='create',
            resource=resource,
            params=params)

        return DownloadTask(
            filename=filename, task=task)
def download ( self , resource , filename , ** kw ) : params = kw . pop ( 'params' , { } ) task = self . make_request ( TaskRunFailed , method = 'create' , resource = resource , params = params ) return DownloadTask ( filename = filename , task = task )
Start and return a Download Task
        
        :rtype: DownloadTask(TaskOperationPoller)