code: def test_get_weighted_sum():
      s = {
          "loss1": 1,
          "loss2": 1,
          "loss3": 1,
          "loss4": 1,
      }
      weights = {
          "loss1": 0.25,
          "loss2": 0.25,
          "loss3": 0.25,
          "loss4": 0.25,
      }
      br = _set_losses_lrc(s)
      expected = {
          "loss1": 1,
          "loss2": 1,
          "loss3": 1,
          "loss4": 1,
          "loss_weighted": 1.0,
      }
  
      result = models.get_weighted_sum(br, weights)
  
      assert result.losses["loss_weighted"] == expected["loss_weighted"]
  
file_path: icevision/tests/utils/test_utils.py
imports: from icevision.all import *
  from icevision.core.record_components import LossesRecordComponent
label_desc: Use image node_id 11 for calling a global function with example usage: test_get_weighted_sum() without return types