code: def test_invalid_lt():
      # Quantity
      q1 = Quantity(BTC, 5)
      q2 = Quantity(ETH, 50)
      with pytest.raises(IncompatibleInstrumentOperation):
          assert (q1 < q2) and not (q2 < q1)
  
      # str
      q1 = Quantity(BTC, 5)
      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 16 for calling a global function with example usage: test_invalid_lt() without return types