code: def test_invalid_init():
      with pytest.raises(InvalidNegativeQuantity):
          q = Quantity(BTC, -10000)
  
      with pytest.raises(TypeError):
          q = Quantity(BTC, "BTC")
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_init() without return types