class_docstr: Base class for RoIHeads.
docstr: Perform forward propagation and loss calculation of the roi head on
  the features of the upstream network.
docstr_tok: ["Perform","forward","propagation","and","loss","calculation","of","the","roi","head","on","the","features","of","the","upstream","network","."]
code: def loss(self, x: Tuple[Tensor], data_samples: DetSampleList):
      """Perform forward propagation and loss calculation of the roi head on
      the features of the upstream network."""
  
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 3 for calling the BaseRoIHead obj's underlying member method code with example usage: obj.loss(x, data_samples) without return types