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