class_docstr: Base class for detectors.
docstr: bool: whether the detector has a bbox head
docstr_tok: ["bool",":","whether","the","detector","has","a","bbox","head"]
code: def with_bbox(self):
      """bool: whether the detector has a bbox head"""
      return (
          hasattr(self, "roi_head") and self.roi_head.with_bbox
      ) or (hasattr(self, "bbox_head") and self.bbox_head 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 4 for calling the BaseDetector obj's underlying member method code with example usage: obj.with_bbox() and returns: unknown