code: def on_update(self, task: "tasks.ClassyTask") -> None:
      MomentumTeacherInLossHook.update_momentum_network(
          task,
          init_teacher_momentum=task.loss.teacher_momentum,
          with_cosine_schedule=True,
      )
  
file_path: vissl/vissl/hooks/dino_hooks.py
imports: import torch
  from classy_vision import tasks
  from classy_vision.hooks.classy_hook import ClassyHook
  from vissl.hooks.hook_utils import MomentumTeacherInLossHook
label_desc: Use image node_id 5 for calling the DINOHook obj's underlying member method code with example usage: obj.on_update(task) without return types