docstr: bool: whether the detector has a RoI head
docstr_tok: ["bool",":","whether","the","detector","has","a","RoI","head"]
code: def with_query_head(self):
      """bool: whether the detector has a RoI head"""
      return hasattr(self, "query_head") and self.query_head is not None
  
imports: import copy
  from typing import Tuple, Union
  import torch
  import torch.nn
  from torch import Tensor
  from mmdet.models.detectors.base import BaseDetector
  from mmdet.registry import MODELS
  from mmdet.structures import OptSampleList, SampleList
  from mmdet.utils import InstanceList, OptConfigType, OptMultiConfig
label_desc: Use image node_id 3 for calling the CoDETR obj's underlying member method code with example usage: obj.with_query_head() and returns: unknown