class_docstr: Base class for detectors.
docstr: bool: whether the detector has a neck
docstr_tok: ["bool",":","whether","the","detector","has","a","neck"]
code: def with_neck(self):
      """bool: whether the detector has a neck"""
      return hasattr(self, "neck") and self.neck is not None
  
imports: from abc import ABCMeta, abstractmethod
  from collections import OrderedDict
  import mmcv
  import numpy
  import torch
  import torch.distributed
  import torch.nn
  from mmcv.runner import auto_fp16
  from mmcv.utils import print_log
  from mmdet.utils import get_root_logger
label_desc: Use image node_id 2 for calling the BaseDetector obj's underlying member method code with example usage: obj.with_neck() and returns: unknown