class_docstr: Implementation of `LAD <https://arxiv.org/pdf/2108.10520.pdf>`_.
docstr: bool: whether the detector has a teacher_neck
docstr_tok: ["bool",":","whether","the","detector","has","a","teacher_neck"]
code: def with_teacher_neck(self) -> bool:
      """bool: whether the detector has a teacher_neck"""
      return (
          hasattr(self.teacher_model, "neck")
          and self.teacher_model.neck is not None
      )
  
file_path: mmdetection/mmdet/models/detectors/lad.py
imports: from typing import Optional
  import torch
  import torch.nn
  from mmengine.runner import load_checkpoint
  from torch import Tensor
  from mmdet.registry import MODELS
  from mmdet.structures import SampleList
  from mmdet.utils import ConfigType, OptConfigType
  from ..utils.misc import unpack_gt_instances
  from .kd_one_stage import KnowledgeDistillationSingleStageDetector
label_desc: Use image node_id 2 for calling the LAD obj's underlying member method code with example usage: obj.with_teacher_neck() and returns: unknown