code: def setup(args):
      """
      Create configs and perform basic setups.
      """
      cfg = get_cfg()
      add_tensormask_config(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/projects/TensorMask/train_net.py
imports: import os
  import detectron2.utils.comm
  from detectron2.checkpoint import DetectionCheckpointer
  from detectron2.config import get_cfg
  from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch
  from detectron2.evaluation import COCOEvaluator, verify_results
  from tensormask import add_tensormask_config
label_desc: Use image node_id 1 for calling a global function with example usage: setup(args) and returns: cfg