code: def test_scheduler_as_decay(self):
      config = self._get_valid_decay_config()
  
      scheduler = CosineParamScheduler.from_config(config)
      schedule = [
          round(scheduler(epoch_num / self._num_epochs), 4)
          for epoch_num in range(self._num_epochs)
      ]
      expected_schedule = [
          config["start_value"]
      ] + self._get_valid_decay_config_intermediate_values()
  
      self.assertEqual(schedule, expected_schedule)
  
file_path: ClassyVision/test/optim_param_scheduler_cosine_test.py
imports: import copy
  import unittest
  from classy_vision.optim.param_scheduler import build_param_scheduler, CosineParamScheduler
label_desc: Use image node_id 4 for calling the TestCosineScheduler obj's underlying member method code with example usage: obj.test_scheduler_as_decay() without return types