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