code: def test_split_results(self):
      # some shorthands
      lt = torch.LongTensor
      ft = torch.FloatTensor
  
      base_postprocessor = BaseTextDetPostProcessor()
  
      # test invalid arguments
      with self.assertRaises(AssertionError):
          base_postprocessor.split_results(None)
  
      results = [lt([0, 1, 5]), ft([0.2, 0.3])]
      with self.assertRaises(AssertionError):
          base_postprocessor.split_results(results)
  
      # test split_results
      results = [lt([0, 1, 5]), ft([0.2, 0.3, 0.6])]
      split_results = base_postprocessor.split_results(results)
      self.assertEqual(
          split_results,
          [
              [lt([0]), ft([0.2])],
              [lt([1]), ft([0.3])],
              [lt([5]), ft([0.6])],
          ],
      )
  
      results = lt([0, 1, 5])
      split_results = base_postprocessor.split_results(results)
      self.assertEqual(split_results, [lt([0]), lt([1]), lt([5])])
  
file_path: mmocr/tests/test_models/test_textdet/test_postprocessors/test_base_postprocessor.py
imports: import unittest
  from unittest import mock
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.models.textdet.postprocessors import BaseTextDetPostProcessor
  from mmocr.structures import TextDetDataSample
label_desc: Use image node_id 5 for calling the TestBaseTextDetPostProcessor obj's underlying member method code with example usage: obj.test_split_results() without return types