code: def _download(self, dstFile):
          
          for attempt in retry(predicate=lambda e: isinstance(e, HTTPError) and e.code == 400):
              with attempt:
                  with closing(urlopen(self.url)) as content:
                      buf = content.read()
          contentHash = hashlib.md5(buf)
          assert contentHash.hexdigest() == self.contentHash
          dstFile.write(buf)
docs: Download this resource from its URL to the given file object.
  
          :type dstFile: io.BytesIO|io.FileIO