code: def test_cooldownchooser_prob():
      for i in range(10):
          c = DynamicProbabilityRandomDesign(
              seed=1, probability=0.1 * i, factor=0.5
          )
          expected = 0.1 * i
          for _ in range(3):
              stats = []
              for j in range(100000):
                  stats.append(c.check(j))
              assert np.isclose(np.mean(stats), expected, atol=10**-2)
              expected *= 0.5
              c.next_iteration()
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_cooldownchooser_prob() without return types