code: def unwrap_scheduler(scheduler, num_steps=10):
      lr_sch = []
      for _ in range(num_steps):
          lr_sch.append(scheduler.get_lr()[0])
          scheduler.step()
      return lr_sch
  
file_path: towhee/tests/unittests/trainer/test_scheduler.py
imports: import os
  import tempfile
  import unittest
  import torch
  from torch import nn
  from towhee.trainer.optimization.adafactor import Adafactor
  from towhee.trainer.optimization.adamw import AdamW
  from towhee.trainer.scheduler import configure_constant_scheduler, configure_constant_scheduler_with_warmup, configure_linear_scheduler_with_warmup, configure_cosine_scheduler_with_warmup, configure_cosine_with_hard_restarts_scheduler_with_warmup, configure_polynomial_decay_scheduler_with_warmup
label_desc: Use image node_id 1 for calling a global function with example usage: unwrap_scheduler(scheduler, num_steps) and returns: lr_sch