code: def test_invalid_iadd():
      # Quantity
      q = Quantity(BTC, 10000)
      with pytest.raises(IncompatibleInstrumentOperation):
          q += Quantity(ETH, 500)
  
      # Quantity with different Path IDs
      q = Quantity(BTC, 10000, path_id=path_id)
      with pytest.raises(QuantityOpPathMismatch):
          q += Quantity(BTC, 500, path_id=other_id)
  
      # str
      q = Quantity(BTC, 10000)
      with pytest.raises(InvalidNonNumericQuantity):
          q += "ETH"
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_invalid_iadd() without return types