code: def test_method_config(self):
      experiment = {
          "demo": {
              "_name": "DemoWithStr",
              "strval": "foo",
          },
          "object_from_method": {
              "_name": "demo_method_with_str",
              "str_val": 5,
          },
      }
  
      # Test that the initialization is correct
      e = ExperimentConfig(experiment)
      self.assertIsInstance(e["object_from_method"], DemoWithStr)
      self.assertEqual(e["object_from_method"].strval, 5)
  
imports: import unittest
  from pathlib import Path
  from typing import Any, Dict, List
  from transfer_nlp.plugins.config import CallableInstantiationError, ExperimentConfig, LoopInConfigError, UnknownPluginException, UnknownReferenceError, register_plugin
label_desc: Use image node_id 21 for calling the RegistryTest obj's underlying member method code with example usage: obj.test_method_config() without return types