code: def reload_lazy_config(cfg):
      """
      Save an object by LazyConfig.save and load it back.
      This is used to test that a config still works the same after
      serialization/deserialization.
      """
      with tempfile.TemporaryDirectory(prefix="detectron2") as d:
          fname = os.path.join(d, "d2_cfg_test.yaml")
          LazyConfig.save(cfg, fname)
          return LazyConfig.load(fname)
  
imports: import io
  import numpy
  import os
  import re
  import tempfile
  import unittest
  from typing import Callable
  import torch
  import torch.onnx.symbolic_helper
  from packaging import version
  from torch._C import ListType
  from torch.onnx import register_custom_op_symbolic
  from detectron2 import model_zoo
  from detectron2.config import CfgNode, LazyConfig, instantiate
  from detectron2.data import DatasetCatalog
  from detectron2.data.detection_utils import read_image
  from detectron2.modeling import build_model
  from detectron2.structures import Boxes, Instances, ROIMasks
  from detectron2.utils.file_io import PathManager
label_desc: Use image node_id 7 for calling a global function with example usage: reload_lazy_config(cfg) and returns: LazyConfig