class_docstr: Base class for segmentors.
class_docstr_tok: ["Base","class","for","segmentors","."]
docstr: bool: whether the segmentor has neck
docstr_tok: ["bool",":","whether","the","segmentor","has","neck"]
code: def with_neck(self):
      """bool: whether the segmentor has neck"""
      return hasattr(self, "neck") and self.neck is not None
  
imports: import logging
  import warnings
  from abc import ABCMeta, abstractmethod
  from collections import OrderedDict
  import annotator.uniformer.mmcv
  import numpy
  import torch
  import torch.distributed
  import torch.nn
  from annotator.uniformer.mmcv.runner import auto_fp16
label_desc: Use image node_id 2 for calling the BaseSegmentor obj's underlying member method code with example usage: obj.with_neck() and returns: unknown