code: def test_merge_cfg_from_list(self):
      opts = [
          "TRAIN.SCALES",
          "(100, )",
          "MODEL.TYPE",
          "foobar",
          "NUM_GPUS",
          2,
      ]
      assert len(cfg.TRAIN.SCALES) > 0
      assert cfg.TRAIN.SCALES[0] != 100
      assert cfg.MODEL.TYPE != "foobar"
      assert cfg.NUM_GPUS != 2
      core_config.merge_cfg_from_list(opts)
      assert type(cfg.TRAIN.SCALES) is tuple
      assert len(cfg.TRAIN.SCALES) == 1
      assert cfg.TRAIN.SCALES[0] == 100
      assert cfg.MODEL.TYPE == "foobar"
      assert cfg.NUM_GPUS == 2
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import copy
  import tempfile
  import unittest
  import yaml
  from detectron.core.config import cfg
  from detectron.utils.collections import AttrDict
  import detectron.core.config
  import detectron.utils.logging
label_desc: Use image node_id 4 for calling the TestCfg obj's underlying member method code with example usage: obj.test_merge_cfg_from_list() without return types