code: 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)
docs: Start and return a Download Task
          
          :rtype: DownloadTask(TaskOperationPoller)