class_docstr: Hook used for the implementation of iBOT (https://arxiv.org/pdf/2111.07832.pdf)
  - Handles the creation of the EMA teacher
  - Handles the forward of the EMA teacher
  - Handles the configuration of the DINO Loss
code: def _build_momentum_network(task: tasks.ClassyTask) -> None:
      # Same architecture as student but do not apply stochastic depth
      task.config["MODEL"]["TRUNK"]["VISION_TRANSFORMERS"][
          "DROP_PATH_RATE"
      ] = 0.0
      MomentumTeacherInLossHook.build_momentum_network(
          task, config=task.config
      )
  
file_path: vissl/vissl/hooks/ibot_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 2 for calling the IBOTHook obj's underlying member method code with example usage: obj._build_momentum_network(task) without return types