class_docstr: BatchSampler with sorted samples by length.
  
  Args:
      batch_size:
      shape_file:
      sort_in_batch: 'descending', 'ascending' or None.
      sort_batch:
class_docstr_tok: ["BatchSampler","with","sorted","samples","by","length",".","Args",":","batch_size",":","shape_file",":","sort_in_batch",":","'descending","'",",","'ascending","'","or","None",".","sort_batch",":"]
code: def __repr__(self):
      return (
          f"{self.__class__.__name__}("
          f"N-batch={len(self)}, "
          f"batch_size={self.batch_size}, "
          f"shape_file={self.shape_file}, "
          f"sort_in_batch={self.sort_in_batch}, "
          f"sort_batch={self.sort_batch})"
      )
  
file_path: espnet/espnet2/samplers/sorted_batch_sampler.py
imports: import logging
  from typing import Iterator, Tuple
  from typeguard import check_argument_types
  from espnet2.fileio.read_text import load_num_sequence_text
  from espnet2.samplers.abs_sampler import AbsSampler
label_desc: Use image node_id 2 for calling the SortedBatchSampler obj's underlying member method code with example usage: obj.__repr__() and returns: self, str, len, str, self, str, self, str, self, str, self, str