class_docstr: Base class for panoptic heads.
docstr: bool: whether the panoptic head contains loss function.
docstr_tok: ["bool",":","whether","the","panoptic","head","contains","loss","function","."]
code: def with_loss(self) -> bool:
      """bool: whether the panoptic head contains loss function."""
      return self.loss_panoptic is not None
  
file_path: mmdetection/mmdet/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py
imports: from abc import ABCMeta, abstractmethod
  from mmengine.model import BaseModule
  from mmdet.registry import MODELS
  from mmdet.utils import OptConfigType, OptMultiConfig
label_desc: Use image node_id 2 for calling the BasePanopticFusionHead obj's underlying member method code with example usage: obj.with_loss() and returns: unknown