code: def test_call(mock_order_class, mock_exchange_class):
      exchange = mock_exchange_class.return_value
  
      order = mock_order_class.return_value
      order.created_at = 5
      order.clock.step = 10
  
      criteria = Timed(duration=10)
      assert criteria(order, exchange)
  
      order.clock.step = 15
      assert criteria(order, exchange)
  
      order.clock.step = 16
      assert not criteria(order, exchange)
  
imports: import unittest.mock
  from tensortrade.oms.orders.criteria import Timed
label_desc: Use image node_id 2 for calling a global function with example usage: test_call(mock_order_class, mock_exchange_class) without return types