code: def setup(args):
      cfg = get_cfg()
      if args.config_file:
          cfg.merge_from_file(args.config_file)
      cfg.merge_from_list(args.opts)
      cfg.DATALOADER.NUM_WORKERS = 0
      cfg.freeze()
      return cfg
  
file_path: detectron2/tools/visualize_data.py
imports: import argparse
  import os
  from itertools import chain
  import cv2
  import tqdm
  from detectron2.config import get_cfg
  from detectron2.data import DatasetCatalog, MetadataCatalog, build_detection_train_loader
  from detectron2.data import detection_utils
  from detectron2.data.build import filter_images_with_few_keypoints
  from detectron2.utils.logger import setup_logger
  from detectron2.utils.visualizer import Visualizer
label_desc: Use image node_id 1 for calling a global function with example usage: setup(args) and returns: cfg