code: def download(url, filename):
      with open(filename, "wb") as f:
          response = requests.get(url, stream=True, verify=False)
          total = response.headers.get("content-length")
  
          if total is None:
              f.write(response.content)
          else:
              downloaded = 0
              total = int(total)
              # print(total)
              for data in response.iter_content(
                  chunk_size=max(int(total / 1000), 1024 * 1024)
              ):
                  downloaded += len(data)
                  f.write(data)
                  done = int(50 * downloaded / total)
                  sys.stdout.write(
                      "\r[{}{}]".format("█" * done, "." * (50 - done))
                  )
                  sys.stdout.flush()
  
imports: from .imports import *
  from subprocess import Popen
label_desc: Use image node_id 29 for calling a global function with example usage: download(url, filename) without return types