code: def test_point_assigner(self):
      assigner = PointAssigner()
      pred_instances = InstanceData()
      pred_instances.priors = torch.FloatTensor(
          [
              # [x, y, stride]
              [0, 0, 1],
              [10, 10, 1],
              [5, 5, 1],
              [32, 32, 1],
          ]
      )
      gt_instances = InstanceData()
      gt_instances.bboxes = torch.FloatTensor(
          [
              [0, 0, 10, 9],
              [0, 10, 10, 19],
          ]
      )
      gt_instances.labels = torch.LongTensor([0, 1])
      assign_result = assigner.assign(pred_instances, gt_instances)
      expected_gt_inds = torch.LongTensor([1, 2, 1, 0])
      assert_allclose(assign_result.gt_inds, expected_gt_inds)
  
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 1 for calling the TestPointAssigner obj's underlying member method code with example usage: obj.test_point_assigner() without return types