class_docstr: Base class for defining distillation loss functions. Sub-classes must implement `_forward_distill` function.
  
  Args:
      opts: command line arguments
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts, *args, **kwargs)
  
      self.teacher = build_cls_teacher_from_opts(opts=opts)
  
file_path: ml-cvnets/loss_fn/distillation/base_distillation.py
imports: import argparse
  from typing import Mapping, Union
  import torch
  from torch import Tensor
  from loss_fn import LOSS_REGISTRY, BaseCriteria
  from loss_fn.utils.build_helper import build_cls_teacher_from_opts
  from utils import logger
label_desc: Use image node_id 1 to create a new BaseDistillationCriteria object from inherited base classes: BaseCriteria with example: obj = BaseDistillationCriteria(opts)