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
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
towhee/trainer/scheduler.py