class_docstr: Sample collection base class with samples loaded from a list of in-memory paths.
class_docstr_tok: ["Sample","collection","base","class","with","samples","loaded","from","a","list","of","in-memory","paths","."]
docstr: Parameters
  ----------
  samples : iterable of tuples of the form (sample_filename, filesize [, transcript])
      File-size is used for ordering the samples; transcript has to be provided if labeled=True
  labeled : bool or None
      If True: Reads LabeledSample instances.
      If False: Ignores transcripts (if available) and reads (unlabeled) util.audio.Sample instances.
  reverse : bool
      If the order of the samples should be reversed
code: def __init__(self, samples, labeled=True, reverse=False):
      """
      Parameters
      ----------
      samples : iterable of tuples of the form (sample_filename, filesize [, transcript])
          File-size is used for ordering the samples; transcript has to be provided if labeled=True
      labeled : bool or None
          If True: Reads LabeledSample instances.
          If False: Ignores transcripts (if available) and reads (unlabeled) util.audio.Sample instances.
      reverse : bool
          If the order of the samples should be reversed
      """
      self.labeled = labeled
      self.samples = list(samples)
      self.samples.sort(key=lambda r: r[1], reverse=reverse)
  
imports: import os
  import io
  import csv
  import json
  import tarfile
  from pathlib import Path
  from functools import partial
  from .helpers import KILOBYTE, MEGABYTE, GIGABYTE, Interleaved, LenMap
  from .audio import Sample, AUDIO_TYPE_PCM, AUDIO_TYPE_OPUS, SERIALIZABLE_AUDIO_TYPES, get_loadable_audio_type_from_extension, write_wav
  from .io import open_remote, is_remote_path
label_desc: Use image node_id 1 to create a new SampleList object  with example: obj = SampleList(samples, labeled, reverse)