original_docstring: Reads the different formats supported in SB Extended CSV.
  
      Delegates to the relevant functions.
      
docstring: Reads the different formats supported in SB Extended CSV.
  Delegates to the relevant functions.
docstring_tokens: Reads the different formats supported in SB Extended CSV . Delegates to the relevant functions .
code: def _read_csv_item(item):
      """Reads the different formats supported in SB Extended CSV.
  
      Delegates to the relevant functions.
      """
      opts = _parse_csv_item_opts(item.opts)
      if item.format in TORCHAUDIO_FORMATS:
          audio, _ = torchaudio.load(item.data)
          return audio.squeeze(0)
      elif item.format == "pkl":
          return read_pkl(item.data, opts)
      elif item.format == "string":
          # Just implement string reading here.
          # NOTE: No longer supporting
          # lab2ind mapping like before.
          # Try decoding string
          string = item.data
          try:
              string = string.decode("utf-8")
          except AttributeError:
              pass
          # Splitting elements with ' '
          string = string.split(" ")
          return string
      else:
          raise TypeError(f"Don't know how to read {item.format}")
code_tokens: def _read_csv_item ( item ) : opts = _parse_csv_item_opts ( item . opts ) if item . format in TORCHAUDIO_FORMATS : audio , _ = torchaudio . load ( item . data ) return audio . squeeze ( 0 ) elif item . format == "pkl" : return read_pkl ( item . data , opts ) elif item . format == "string" : string = item . data try : string = string . decode ( "utf-8" ) except AttributeError : pass string = string . split ( " " ) return string else : raise TypeError ( f"Don't know how to read {item.format}" )
short_docstring: Reads the different formats supported in SB Extended CSV.
short_docstring_tokens: Reads the different formats supported in SB Extended CSV .
comment: """Reads the different formats supported in SB Extended CSV.
  
      Delegates to the relevant functions.
      """$SEP$# Just implement string reading here.$SEP$# NOTE: No longer supporting$SEP$# lab2ind mapping like before.$SEP$# Try decoding string$SEP$# Splitting elements with ' '