code: def test_make_batch_returns_multiple_batches_with_input_tuples_sorted(
      self,
  ) -> None:
      # case: multiple batches are returned (w/ tuples sorted) for a large input mega-batch
      mega_batch = []
      mega_batch_len = (self.batch_size * 3) + self.batch_size - 1
      # make a large mega-batch so that multiuple batches are returned
      for _i in range(mega_batch_len):
          # each input has multiple text fields of varying lengths
          multi_text = []
          # first add a few short strings
          for short_text_len in range(5):
              multi_text.append(
                  self.get_random_string_with_n_tokens(short_text_len)
              )
          # add a string with many tokens (to verify sorted order)
          multi_text.append(
              self.get_random_string_with_n_tokens(
                  mega_batch_len * 2 - _i
              )
          )
          mega_batch.append((multi_text, None, None, None, None, _i))
      sorted_mega_batch = sorted(
          mega_batch, key=lambda x: x[-1], reverse=True
      )
      batches = self.module.make_batch(
          mega_batch, {"batchsize": str(self.batch_size)}
      )
      start = 0
      while start < min(start + self.batch_size, len(mega_batch)):
          end = min(start + self.batch_size, len(mega_batch))
          self.assertEqual(
              batches[start // self.batch_size],
              sorted_mega_batch[start:end],
          )
          start = end
  
imports: import random
  import string
  import unittest
  from typing import List, Optional, Tuple
  import torch
  from pytext.data.tensorizers import TensorizerScriptImpl
  from pytext.torchscript.module import PyTextEmbeddingModule, ScriptPyTextEmbeddingModule
  from pytext.torchscript.tensorizer.tensorizer import ScriptTensorizer, VocabLookup
  from pytext.torchscript.utils import pad_2d_mask, ScriptBatchInput
  from pytext.torchscript.vocab import ScriptVocabulary
  from pytorch.text.fb.utils.transform_utils import pad_2d
label_desc: Use image node_id 17 for calling the ScriptPyTextEmbeddingModuleTest obj's underlying member method code with example usage: obj.test_make_batch_returns_multiple_batches_with_input_tuples_sorted() without return types