code: def test_injects_component_space():
      c = {
          "messages": {"msg_var": 0, "valid": ["Hello", "World"]},
          **config,
      }
  
      with TradingContext(c) as c:
          name = "TensorTrade"
          value = "the time and effort."
          instance = WorthMessageComponent(name=name, value=value)
  
          assert hasattr(instance.context, "msg_var")
          assert hasattr(instance.context, "valid")
  
          assert instance.context.msg_var == 0
          assert instance.context.valid == ["Hello", "World"]
  
imports: from abc import abstractmethod
  from tensortrade.core import Component, TradingContext
label_desc: Use image node_id 4 for calling a global function with example usage: test_injects_component_space() without return types