code: def backup_cfg():
      orig_config = cfg.to_dict()
      yield
      cfg.from_dict(orig_config)
  
file_path: tensorpack/sotabench/sotabench.py
imports: import os
  import sys
  import tqdm
  from contextlib import contextmanager
  from tensorpack.predict import OfflinePredictor, PredictConfig
  from tensorpack.tfutils import SmartInit
  from tensorpack.utils.fs import download
  from sotabencheval.utils import is_server
  from sotabencheval.object_detection import COCOEvaluator
  from config import finalize_configs, config
  from eval import predict_image
  from dataset import register_coco
  from dataset.coco import COCODetection
  from data import get_eval_dataflow
  from modeling.generalized_rcnn import ResNetFPNModel, ResNetC4Model
label_desc: Use image node_id 1 for calling a global function with example usage: backup_cfg() without return types