code: def test_context_retains_data_outside_with():
      with TradingContext(config) as tc:
          assert tc.data == config
  
      assert tc.data == config
  
file_path: tensortrade/tests/tensortrade/unit/base/test_context.py
imports: from tensortrade.core import TradingContext
label_desc: Use image node_id 9 for calling a global function with example usage: test_context_retains_data_outside_with() without return types