code: def download_default_clip_interrogate_categories(content_dir):
      print("Downloading CLIP categories...")
  
      tmpdir = f"{content_dir}_tmp"
      category_types = ["artists", "flavors", "mediums", "movements"]
  
      try:
          os.makedirs(tmpdir, exist_ok=True)
          for category_type in category_types:
              torch.hub.download_url_to_file(
                  f"https://raw.githubusercontent.com/pharmapsychotic/clip-interrogator/main/clip_interrogator/data/{category_type}.txt",
                  os.path.join(tmpdir, f"{category_type}.txt"),
              )
          os.rename(tmpdir, content_dir)
  
      except Exception as e:
          errors.display(
              e, "downloading default CLIP interrogate categories"
          )
      finally:
          if os.path.exists(tmpdir):
              os.removedirs(tmpdir)
  
imports: import os
  import sys
  from collections import namedtuple
  from pathlib import Path
  import re
  import torch
  import torch.hub
  from torchvision import transforms
  from torchvision.transforms.functional import InterpolationMode
  from modules import devices, paths, shared, lowvram, modelloader, errors
label_desc: Use image node_id 2 for calling a global function with example usage: download_default_clip_interrogate_categories(content_dir) without return types