code: def __init__(
      self, min_momentum=None, min_momentum_ratio=None, **kwargs
  ):
      assert (min_momentum is None) ^ (min_momentum_ratio is None)
      self.min_momentum = min_momentum
      self.min_momentum_ratio = min_momentum_ratio
      super(CosineAnnealingMomentumUpdaterHook, self).__init__(**kwargs)
  
imports: import annotator.uniformer.mmcv
  from .hook import HOOKS, Hook
  from .lr_updater import annealing_cos, annealing_linear, format_param
label_desc: Use image node_id 1 to create a new CosineAnnealingMomentumUpdaterHook object from inherited base classes: MomentumUpdaterHook with example: obj = CosineAnnealingMomentumUpdaterHook(min_momentum, min_momentum_ratio)