code: def test_init():
      criteria = Timed(duration=8)
      assert criteria
      assert criteria.duration == 8
  
imports: import unittest.mock
  from tensortrade.oms.orders.criteria import Timed
label_desc: Use image node_id 1 for calling a global function with example usage: test_init() without return types