code: def get_activation(self, pred):
      pred = torch.sigmoid(pred)
      n_i, n_c = pred.size()
      bg_score = pred[:, -1].view(n_i, 1)
      if self.test_with_obj:
          pred[:, :-1] *= 1 - bg_score
      return pred
  
file_path: mmdetection/mmdet/models/losses/eqlv2_loss.py
imports: import logging
  from functools import partial
  from typing import Optional
  import torch
  import torch.distributed
  import torch.nn
  import torch.nn.functional
  from mmengine.logging import print_log
  from torch import Tensor
  from mmdet.registry import MODELS
label_desc: Use image node_id 4 for calling the EQLV2Loss obj's underlying member method code with example usage: obj.get_activation(pred) and returns: pred