code: def test_deprecated_key_from_list(self):
      # You should see logger messages like:
      #   "Deprecated config key (ignoring): MODEL.DILATION"
      opts = ["FINAL_MSG", "foobar", "MODEL.DILATION", 2]
      with self.assertRaises(AttributeError):
          _ = cfg.FINAL_MSG  # noqa
      with self.assertRaises(AttributeError):
          _ = cfg.MODEL.DILATION  # noqa
      core_config.merge_cfg_from_list(opts)
      with self.assertRaises(AttributeError):
          _ = cfg.FINAL_MSG  # noqa
      with self.assertRaises(AttributeError):
          _ = cfg.MODEL.DILATION
  
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 5 for calling the TestCfg obj's underlying member method code with example usage: obj.test_deprecated_key_from_list() without return types