code: def test_str():
      criteria = Stop(direction=StopDirection.UP, percent=0.3)
      assert str(criteria) == "<Stop: direction=up, percent=0.3>"
  
imports: import unittest.mock
  from tensortrade.oms.orders.criteria import Stop, StopDirection
  from tensortrade.oms.instruments import USD, BTC
label_desc: Use image node_id 4 for calling a global function with example usage: test_str() without return types