code: def test_register_scheduler(self):
      class TempSched(optim.lr_scheduler.CosineAnnealing):
          pass
  
      class TempSchedParams(config.schedulers.CosineAnnealingParams):
          pass
  
      optim.lr_scheduler.register_scheduler(
          "TempSched", TempSched, TempSchedParams
      )
  
      model = TempModel()
      opt_cls = optim.get_optimizer("novograd")
      opt = opt_cls(model.parameters(), lr=self.INITIAL_LR)
      sched_cls = optim.lr_scheduler.get_scheduler("TempSched")
      sched = sched_cls(opt, max_steps=self.MAX_STEPS)
  
      assert isinstance(sched, TempSched)
  
imports: import math
  import random
  import omegaconf
  import pytest
  import pytorch_lightning
  import torch
  import torch.optim
  from pytorch_lightning.utilities import rank_zero_only
  from nemo.core import config, optim
  from nemo.core.optim.lr_scheduler import AVAILABLE_SCHEDULERS
  from nemo.core.optim.optimizers import AVAILABLE_OPTIMIZERS
  from nemo.utils import logging
label_desc: Use image node_id 7 for calling the TestOptimizersSchedulers obj's underlying member method code with example usage: obj.test_register_scheduler() without return types