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