code: def test_time_indexed_init():
      class FirstExample(TimeIndexed):
          def __init__(self, msg):
              self.msg = msg
  
      class SecondExample(TimeIndexed):
          def __init__(self, msg):
              self.msg = msg
  
      example1 = FirstExample("Example 1")
      example2 = SecondExample("Example 2")
  
      assert example1.clock
      assert example1.clock.start == 0
      assert example1.clock.step == 0
  
      assert example2.clock
      assert example2.clock.start == 0
      assert example2.clock.step == 0
  
      assert example1.clock == example2.clock
  
imports: import tensortrade.core.clock
  from tensortrade.core import Clock, TimeIndexed
label_desc: Use image node_id 3 for calling a global function with example usage: test_time_indexed_init() without return types