code: def test_invalid_equals():
      # Quantity
      q1 = Quantity(ETH, 5)
      q2 = Quantity(BTC, 5)
      with pytest.raises(IncompatibleInstrumentOperation):
          assert (q1 == q2) and (q2 == q1)
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 20 for calling a global function with example usage: test_invalid_equals() without return types