code: def testDecaying(self):
      init_value = 0.1
      final_value = 1.0
      begin_step = 10
      decaying_step = 10
      exponent = 3
      scheduler = schedules.PolynomialDecay(
          init_value,
          decaying_step,
          final_value,
          begin_step=begin_step,
          exponent=exponent,
      )
      expected = [
          final_value
          + (init_value - final_value)
          * (1 - float(i) / decaying_step) ** exponent
          for i in range(decaying_step)
      ]
      output = [scheduler(begin_step + i) for i in range(decaying_step)]
      self.assertAllClose(output, expected)
  
file_path: model-optimization/tensorflow_model_optimization/python/core/common/keras/compression/schedules_test.py
imports: import tensorflow
  from tensorflow_model_optimization.python.core.common.keras.compression import schedules
label_desc: Use image node_id 2 for calling the CubicPolynomialDecayTest obj's underlying member method code with example usage: obj.testDecaying() without return types