code: def test_valid_equals():
      BTC1 = Instrument("BTC", 8, "Bitcoin")
      BTC2 = Instrument("BTC", 8, "Bitcoin")
      assert BTC1 == BTC2
  
      BTC2 = Instrument("ETH", 8, "Bitcoin")
      assert not BTC1 == BTC2
  
      BTC2 = Instrument("BTC", 5, "Bitcoin")
      assert not BTC1 == BTC2
  
      BTC2 = Instrument("BTC", 8, "Etheruem")
      assert not BTC1 == BTC2
  
file_path: tensortrade/tests/tensortrade/unit/oms/instruments/test_instrument.py
imports: import pytest
  from tensortrade.oms.instruments import Instrument, Quantity
  from tensortrade.core.exceptions import InvalidTradingPair
label_desc: Use image node_id 2 for calling a global function with example usage: test_valid_equals() without return types