code: def check_scheduler(scheduler_type: str) -> bool:
      """
      Check if the scheduler type is supported.
  
      Args:
          scheduler_type (`str`):
              the type of the scheduler.
      Return (`bool`):
          if the scheduler type is supported.
  
      Example:
          >>> from towhee.trainer.scheduler import check_scheduler
          >>> check_scheduler('constant')
          True
      """
      if scheduler_list.count(scheduler_type) == 0:
          return False
      else:
          return True
  
file_path: towhee/towhee/trainer/scheduler.py
imports: import math
  from torch.optim.lr_scheduler import LambdaLR
  from torch.optim.optimizer import Optimizer
label_desc: Use image node_id 1 for calling a global function with example usage: check_scheduler(scheduler_type) and returns: False, True