code: def test_invalid_init():
      with pytest.raises(InvalidTradingPair):
          pair = TradingPair(BTC, BTC)
  
imports: import pytest
  from tensortrade.oms.instruments import TradingPair, BTC, USD
  from tensortrade.core.exceptions import InvalidTradingPair
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_init() without return types