code: def test_has_config_attribute():
      c = TradingContext(
          {
              "test": True,
              "exchanges": {"test": True},
              "actions": {"test": True},
              "rewards": {"test": True},
          }
      )
  
      assert hasattr(c, "shared")
  
file_path: tensortrade/tests/tensortrade/unit/base/test_context.py
imports: from tensortrade.core import TradingContext
label_desc: Use image node_id 3 for calling a global function with example usage: test_has_config_attribute() without return types