docstr: Test corner case where an image might predict no points and no
  gt.
docstr_tok: ["Test","corner","case","where","an","image","might","predict","no","points","and","no","gt","."]
code: def test_point_assigner_with_empty_boxes_and_gt(self):
      """Test corner case where an image might predict no points and no
      gt."""
      assigner = PointAssigner()
      pred_instances = InstanceData()
      pred_instances.priors = torch.FloatTensor([])
      gt_instances = InstanceData()
      gt_instances.bboxes = torch.FloatTensor([])
      gt_instances.labels = torch.LongTensor([])
      assign_result = assigner.assign(pred_instances, gt_instances)
      self.assertEqual(len(assign_result.gt_inds), 0)
  
file_path: mmdetection/tests/test_models/test_task_modules/test_assigners/test_point_assigner.py
imports: import unittest
  import torch
  from mmengine.structures import InstanceData
  from mmengine.testing import assert_allclose
  from mmdet.models.task_modules.assigners import PointAssigner
label_desc: Use image node_id 3 for calling the TestPointAssigner obj's underlying member method code with example usage: obj.test_point_assigner_with_empty_boxes_and_gt() without return types