class_docstr: Base class for RoIHeads.
docstr: bool: whether the RoI head contains a `mask_head`
docstr_tok: ["bool",":","whether","the","RoI","head","contains","a","`","mask_head","`"]
code: def with_extractor(self):
      """bool: whether the RoI head contains a `mask_head`"""
      return (
          hasattr(self, "roi_extractor")
          and self.roi_extractor is not None
      )
  
file_path: mmocr/projects/ABCNet/abcnet/model/base_roi_head.py
imports: from abc import ABCMeta, abstractmethod
  from typing import Tuple
  from mmengine.model import BaseModule
  from torch import Tensor
  from mmocr.utils import DetSampleList
label_desc: Use image node_id 2 for calling the BaseRoIHead obj's underlying member method code with example usage: obj.with_extractor() and returns: unknown