code: def _download_vocab(
      url: str = CLIP_VOCAB,
      root: str = os.path.expanduser("~/.cache/backprop/clip"),
  ):
      os.makedirs(root, exist_ok=True)
      filename = os.path.basename(url)
      download_target = os.path.join(root, filename)
  
      if os.path.exists(download_target) and not os.path.isfile(
          download_target
      ):
          raise RuntimeError(
              f"{download_target} exists and is not a regular file"
          )
  
      if os.path.isfile(download_target):
          if hashlib.sha256(
              open(download_target, "rb").read()
          ).hexdigest():
              return download_target
  
      with urllib.request.urlopen(url) as source, open(
          download_target, "wb"
      ) as output:
          with tqdm(
              total=int(source.info().get("Content-Length")), ncols=80
          ) as loop:
              while True:
                  buffer = source.read(8192)
                  if not buffer:
                      break
  
                  output.write(buffer)
                  loop.update(len(buffer))
  
      return download_target
  
imports: import gzip
  import html
  import os
  from functools import lru_cache
  import hashlib
  import urllib
  from tqdm import tqdm
  import regex
label_desc: Use image node_id 6 for calling a global function with example usage: _download_vocab(url, root) and returns: download_target, download_target