code: def test_create_trading_context_from_yaml():
      path = "tests/data/config/configuration.yaml"
  
      actions = {"n_actions": 24, "action_type": "discrete"}
      exchanges = {
          "credentials": {
              "api_key": "487r63835t4323",
              "api_secret_key": "do8u43hgiurwfnlveio",
          },
          "name": "bitfinex",
      }
  
      with TradingContext.from_yaml(path) as tc:
          assert tc.shared["base_instrument"] == "EURO"
          assert tc.shared["instruments"] == ["BTC", "ETH"]
          assert tc._config["actions"] == actions
          assert tc._config["exchanges"] == exchanges
  
file_path: tensortrade/tests/tensortrade/unit/base/test_context.py
imports: from tensortrade.core import TradingContext
label_desc: Use image node_id 11 for calling a global function with example usage: test_create_trading_context_from_yaml() without return types