code: def test_length(self):
      policy = OptimizerPolicy(one_cycle_phases(100))
      self.assertEqual(len(list(policy.all_steps())), 100)
  
      policy = OptimizerPolicy(one_cycle_phases(99))
      self.assertEqual(len(list(policy.all_steps())), 99)
  
imports: import unittest
  from poutyne import OptimizerPolicy, Phase, cosinespace, linspace, one_cycle_phases, sgdr_phases
label_desc: Use image node_id 1 for calling the TestOneCycle obj's underlying member method code with example usage: obj.test_length() without return types