code: def test_basic_iteration(self):
      policy_iter = iter(self.policy)
      self.assertEqual(next(policy_iter), {"lr": 1})
      self.assertEqual(next(policy_iter), {"lr": 1})
  
      self.assertEqual(next(policy_iter), {"lr": 0})
      self.assertEqual(next(policy_iter), {"lr": 0})
  
      with self.assertRaises(StopIteration):
          next(policy_iter)
  
imports: import unittest
  from poutyne import OptimizerPolicy, Phase, cosinespace, linspace, one_cycle_phases, sgdr_phases
label_desc: Use image node_id 2 for calling the TestOptimizerPolicy obj's underlying member method code with example usage: obj.test_basic_iteration() without return types