code: def test_linear_cool_down():
      c = DynamicModulusRandomDesign(
          seed=1,
          start_modulus=2.0,
          modulus_increment=1.0,
          end_modulus=4.0,
      )
      for i in range(1, 100, 2):
          assert c.check(i) is False
          assert c.check(i + 1) is True
  
      c.next_iteration()
      for i in range(1, 100, 3):
          assert c.check(i) is False
          assert c.check(i + 1) is False
          assert c.check(i + 2) is True
  
      for i in range(10):
          c.next_iteration()
          for i in [1, 2, 3]:
              assert c.check(i) is False
          assert c.check(4) is True
          for i in [5, 6, 7]:
              assert c.check(i) is False
          assert c.check(8) is True
          # Repeat
          for i in [5, 6, 7]:
              assert c.check(i) is False
          assert c.check(8) is True
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_linear_cool_down() without return types