code: def __init__(self, hooks: List[ClassyHook], task) -> None:
      super().__init__()
  
      self.hooks = hooks
      self.task = task
  
file_path: lightning-flash/src/flash/image/embedding/vissl/hooks.py
imports: from typing import Any, List
  import torch
  from pytorch_lightning.core.hooks import ModelHooks
  import flash
  from flash.core.utilities.compatibility import accelerator_connector
  from flash.core.utilities.imports import _VISSL_AVAILABLE
label_desc: Use image node_id 1 to create a new AdaptVISSLHooks object from inherited base classes: ModelHooks with example: obj = AdaptVISSLHooks(hooks, task)