code: def download(self, obj, path=None, show_progress=True, resume=True,
                   auto_retry=True, proapi=False):
          
          url = obj.get_download_url(proapi)
          download(url, path=path, session=self.http.session,
                   show_progress=show_progress, resume=resume,
                   auto_retry=auto_retry)
docs: Download a file
  
          :param obj: :class:`.File` object
          :param str path: local path
          :param bool show_progress: whether to show download progress
          :param bool resume: whether to resume on unfinished downloads
              identified by filename
          :param bool auto_retry: whether to retry automatically upon closed
              transfer until the file's download is finished
          :param bool proapi: whether to use pro API