code: def __init__(
      self, scheduler_builder, monitor=None, step_on_batch=False
  ):
      self._scheduler_builder = scheduler_builder
      self._monitor = monitor
      self._scheduler = None
      self._step_on_batch = step_on_batch
  
      self._newstyle = not _pytorch_version_lt("1.1.0")
  
imports: import functools
  import warnings
  import torch
  import torchbearer
  from torchbearer.bases import get_metric, _pytorch_version_lt, _pytorch_version_gt
  from torchbearer.callbacks import Callback
label_desc: Use image node_id 1 to create a new TorchScheduler object from inherited base classes: Callback with example: obj = TorchScheduler(scheduler_builder, monitor, step_on_batch)