code: def test_valid_init():
      # Quantity
      q = Quantity(BTC, 10000)
      assert q
      assert q.instrument == BTC
      assert q.size == 10000
  
      # Quantity with Path ID
      q = Quantity(BTC, 10000, path_id=path_id)
      assert q
      assert q.instrument == BTC
      assert q.size == 10000
      assert q.path_id == path_id
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_valid_init() without return types