class_docstr: In-memory labeled audio sample representing an utterance.
  Derived from util.audio.Sample and used by sample collection readers and writers.
class_docstr_tok: ["In-memory","labeled","audio","sample","representing","an","utterance",".","Derived","from","util.audio.Sample","and","used","by","sample","collection","readers","and","writers","."]
docstr: Parameters
  ----------
  audio_type : str
      See util.audio.Sample.__init__ .
  raw_data : binary
      See util.audio.Sample.__init__ .
  transcript : str
      Transcript of the sample's utterance
  audio_format : tuple
      See util.audio.Sample.__init__ .
  sample_id : str
      Tracking ID - should indicate sample's origin as precisely as possible.
      It is typically assigned by collection readers.
code: def __init__(
      self,
      audio_type,
      raw_data,
      transcript,
      audio_format=None,
      sample_id=None,
  ):
      """
      Parameters
      ----------
      audio_type : str
          See util.audio.Sample.__init__ .
      raw_data : binary
          See util.audio.Sample.__init__ .
      transcript : str
          Transcript of the sample's utterance
      audio_format : tuple
          See util.audio.Sample.__init__ .
      sample_id : str
          Tracking ID - should indicate sample's origin as precisely as possible.
          It is typically assigned by collection readers.
      """
      super().__init__(
          audio_type,
          raw_data,
          audio_format=audio_format,
          sample_id=sample_id,
      )
      self.transcript = transcript
  
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 LabeledSample object from inherited base classes: Sample with example: obj = LabeledSample(audio_type, raw_data, transcript, audio_format, sample_id)