code: def main(*names, force=False):
      for name in names:
          path = BUILTIN_DIR / f"{name}.categories"
          if path.exists() and not force:
              continue
  
          dataset = datasets.load(name)
          try:
              categories = dataset._generate_categories()
          except NotImplementedError:
              continue
  
          with open(path, "w") as file:
              writer = csv.writer(file, lineterminator="\n")
              for category in categories:
                  writer.writerow(
                      (category,)
                      if isinstance(category, str)
                      else category
                  )
  
imports: import argparse
  import csv
  import sys
  from torchvision.prototype import datasets
  from torchvision.prototype.datasets.utils._internal import BUILTIN_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types