def METHOD_NAME(task, file):
    path = path_traversal_check(task.task_path(file['name']), task.task_path())
    download_stream = requests.get(file['url'], stream=True, timeout=60)
    with open(path, 'wb') as fd:
        for chunk in download_stream.iter_content(4096):
            fd.write(chunk)