@staticmethod
def _init_scheduler(optimizer, cfg):
    if cfg:
        cfg = {k: v for (k, v) in six.iteritems(cfg)}
        sch_cls = utils.get_scheduler_cls(cfg.pop('type'))
        return sch_cls(optimizer, **cfg)
    return None
@staticmethod
def _init_scheduler(optimizer, cfg):
    if cfg:
        cfg = {k: v for (k, v) in six.iteritems(cfg)}
        sch_cls = utils.get_scheduler_cls(cfg.pop('type'))
        return sch_cls(optimizer, **cfg)
    return None