code: def test_scoreloss(self):
      clusters = [torch.tensor([0, 1, 2]), torch.tensor([3, 4])]
      scores = torch.tensor([1, 0]).float()
      gt_instances = torch.tensor([1, 1, 1, 0, 0])
      batch = torch.tensor([0, 0, 0, 0, 0])
      loss = instance_iou_loss(clusters, scores, gt_instances, batch)
  
      self.assertEqual(loss.item(), 0)
  
      gt_instances = torch.tensor([1, 1, 1, 2, 2])
      loss = instance_iou_loss(clusters, scores, gt_instances, batch)
  
      self.assertAlmostEqual(loss.item(), 50)
  
file_path: torch-points3d/test/test_pointgroup.py
imports: import os
  import sys
  import unittest
  import torch
  from torch_points3d.core.losses import offset_loss, instance_iou_loss
label_desc: Use image node_id 2 for calling the TestPointGroupLosses obj's underlying member method code with example usage: obj.test_scoreloss() without return types