class_docstr: Base class for defining distillation loss functions. Sub-classes must implement `_forward_distill` function.
  
  Args:
      opts: command line arguments
code: def add_arguments(
      cls, parser: argparse.ArgumentParser
  ) -> argparse.ArgumentParser:
      if cls != BaseDistillationCriteria:
          # Don't re-register arguments in subclasses that don't override `add_arguments()`.
          return parser
  
      group = parser.add_argument_group(cls.__name__)
      group.add_argument(
          "--loss.distillation.name",
          type=str,
          default=None,
          help="Name of the loss function. Defaults to None.",
      )
      return parser
  
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 2 for calling the BaseDistillationCriteria obj's underlying member method code with example usage: obj.add_arguments(cls, parser) and returns: parser, parser