code: def test_batch_rule_based_sentence_splitting(self):
      text = [
          "This is a sentence. This is a second sentence.",
          "This isn't a sentence. This is a second sentence! This is a third sentence.",
      ]
      batch_split = self.rule_based_splitter.batch_split_sentences(text)
      separately_split = [
          self.rule_based_splitter.split_sentences(doc) for doc in text
      ]
      assert len(batch_split) == len(separately_split)
      for batch_doc, separate_doc in zip(batch_split, separately_split):
          assert len(batch_doc) == len(separate_doc)
          for batch_sentence, separate_sentence in zip(
              batch_doc, separate_doc
          ):
              assert batch_sentence == separate_sentence
  
file_path: allennlp/tests/data/tokenizers/sentence_splitter_test.py
imports: from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers.sentence_splitter import SpacySentenceSplitter
label_desc: Use image node_id 4 for calling the TestSentenceSplitter obj's underlying member method code with example usage: obj.test_batch_rule_based_sentence_splitting() without return types