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