def METHOD_NAME(config):
    """Get registered scheduler class.
    Get a scheduler object from SCHEDULERS.
    Args:
        config: A config dict object that contains the scheduler information.
    Returns:
        A Scheduler object.
    """
    name = "iterative"
    if config.start_step == config.end_step:
        name = "oneshot"
    return SCHEDULERS[name](config)