code: def test_locking():
      q = Quantity(BTC, 10000)
      assert not q.is_locked
  
      q = Quantity(BTC, 10000, path_id=path_id)
      assert q.is_locked
  
      q = Quantity(BTC, 10000)
      q.path_id = path_id
      assert q.is_locked
  
      q = Quantity(BTC, 10000).lock_for(path_id)
      assert q.is_locked
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_locking() without return types