code: def test_literal_injection(self):
      experiment = {
          "demo2": {"_name": "DemoWithStr", "strval": "dummy"},
          "demo3": {"_name": "DemoWithInt", "intval": 5},
      }
      e = ExperimentConfig(experiment)
  
      self.assertTrue(isinstance(e["demo2"], DemoWithStr))
      self.assertTrue(isinstance(e["demo3"], DemoWithInt))
  
      self.assertEqual(e["demo2"].strval, "dummy")
      self.assertEqual(e["demo3"].intval, 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 10 for calling the RegistryTest obj's underlying member method code with example usage: obj.test_literal_injection() without return types