code: def setup(args):
      """
      Create configs and perform basic setups.
      """
      cfg = get_cfg()
      cfg.merge_from_file(args.config_file)
      cfg.merge_from_list(args.opts)
      cfg.freeze()
      default_setup(cfg, args)
      return cfg
  
file_path: detectron2/tools/train_net.py
imports: import logging
  import os
  from collections import OrderedDict
  import detectron2.utils.comm
  from detectron2.checkpoint import DetectionCheckpointer
  from detectron2.config import get_cfg
  from detectron2.data import MetadataCatalog
  from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, hooks, launch
  from detectron2.evaluation import CityscapesInstanceEvaluator, CityscapesSemSegEvaluator, COCOEvaluator, COCOPanopticEvaluator, DatasetEvaluators, LVISEvaluator, PascalVOCDetectionEvaluator, SemSegEvaluator, verify_results
  from detectron2.modeling import GeneralizedRCNNWithTTA
label_desc: Use image node_id 2 for calling a global function with example usage: setup(args) and returns: cfg