code: def test_chunk_long_sequences(self):
      fake_data = ["A"] * 2 + ["B " * 1200] * 2
  
      random.shuffle(fake_data)
  
      model = Classifier(
          optimize_for="predict_speed",
          chunk_long_sequences=True,
          sort_by_length=False,
      )
      model.fit(["A", "A"], ["B", "B"])
  
      probas = model.predict_proba(fake_data)
      model.config.sort_by_length = True
      probas_sorted = model.predict_proba(fake_data)
  
      for pair in zip(probas, probas_sorted):
          assert np.allclose(
              list(pair[0].values()), list(pair[1].values()), atol=1e-6
          )
  
file_path: finetune/tests/test_sort_by_length.py
imports: import unittest
  import time
  import random
  import numpy
  from finetune import Classifier
label_desc: Use image node_id 2 for calling the TestSortByLength obj's underlying member method code with example usage: obj.test_chunk_long_sequences() without return types