code: def setUp(self) -> None:
      self.loss = MaskedBalancedBCEWithLogitsLoss(negative_ratio=2)
      self.pred = torch.FloatTensor([1.5, 1.5, 1.5, 1.5])
      self.gt = torch.FloatTensor([1, 1, 1, 0])
      self.mask = torch.BoolTensor([True, False, False, True])
  
imports: from unittest import TestCase
  import torch
  from mmocr.models.common.losses import MaskedBalancedBCELoss, MaskedBalancedBCEWithLogitsLoss, MaskedBCELoss, MaskedBCEWithLogitsLoss
label_desc: Use image node_id 1 for calling the TestMaskedBalancedWithLogitsBCELoss obj's underlying member method code with example usage: obj.setUp() without return types