code: def __init__(self, min_lr=None, min_lr_ratio=None, **kwargs):
      assert (min_lr is None) ^ (min_lr_ratio is None)
      self.min_lr = min_lr
      self.min_lr_ratio = min_lr_ratio
      super(CosineAnnealingLrUpdaterHook, self).__init__(**kwargs)
  
imports: import numbers
  from math import cos, pi
  import annotator.uniformer.mmcv
  from .hook import HOOKS, Hook
label_desc: Use image node_id 1 to create a new CosineAnnealingLrUpdaterHook object from inherited base classes: LrUpdaterHook with example: obj = CosineAnnealingLrUpdaterHook(min_lr, min_lr_ratio)