code: def test_get_named_internal_losses(self):
      d = defaultdict(list)
      d["mock_loss_1"].append(torch.tensor(0.5))
      d["mock_loss_2"].append(torch.tensor(0.3))
      d["mock_loss_3"].append(torch.tensor(1.0))
  
      lossDict = self.model.get_named_internal_losses()
      self.assertEqual(lossDict, d)
  
imports: import unittest
  import numpy
  import numpy.testing
  import torch
  import os
  import sys
  from collections import defaultdict
  from omegaconf import DictConfig
  from torch_points3d.models.base_model import BaseModel, BaseInternalLossModule
  from torch_points3d.modules.PointNet.modules import PointNetSTN3D
label_desc: Use image node_id 2 for calling the TestInternalLosses obj's underlying member method code with example usage: obj.test_get_named_internal_losses() without return types