class_docstr: *CommonVoice* :cite:`ardila2020common` dataset.
  
  Args:
      root (str or Path): Path to the directory where the dataset is located.
           (Where the ``tsv`` file is present.)
      tsv (str, optional):
          The name of the tsv file used to construct the metadata, such as
          ``"train.tsv"``, ``"test.tsv"``, ``"dev.tsv"``, ``"invalidated.tsv"``,
          ``"validated.tsv"`` and ``"other.tsv"``. (default: ``"train.tsv"``)
class_docstr_tok: ["*","CommonVoice","*",":","cite",":","`","ardila2020common","`","dataset",".","Args",":","root","(","str","or","Path",")",":","Path","to","the","directory","where","the","dataset","is","located",".","(","Where","the","``","tsv","``","file","is","present",".",")","tsv","(","str",",","optional",")",":","The","name","of","the","tsv","file","used","to","construct","the","metadata",",","such","as","``","``","train.tsv","''","``",",","``","``","test.tsv","''","``",",","``","``","dev.tsv","''","``",",","``","``","invalidated.tsv","''","``",",","``","``","validated.tsv","''","``","and","``","``","other.tsv","''","``",".","(","default",":","``","``","train.tsv","''","``",")"]
docstr: Load the n-th sample from the dataset.
  
  Args:
      n (int): The index of the sample to be loaded
  
  Returns:
      Tuple of the following items;
  
      Tensor:
          Waveform
      int:
          Sample rate
      Dict[str, str]:
          Dictionary containing the following items from the corresponding TSV file;
  
          * ``"client_id"``
          * ``"path"``
          * ``"sentence"``
          * ``"up_votes"``
          * ``"down_votes"``
          * ``"age"``
          * ``"gender"``
          * ``"accent"``
docstr_tok: ["Load","the","n-th","sample","from","the","dataset",".","Args",":","n","(","int",")",":","The","index","of","the","sample","to","be","loaded","Returns",":","Tuple","of","the","following","items",";","Tensor",":","Waveform","int",":","Sample","rate","Dict","[","str",",","str","]",":","Dictionary","containing","the","following","items","from","the","corresponding","TSV","file",";","*","``","``","client_id","''","``","*","``","``","path","''","``","*","``","``","sentence","''","``","*","``","``","up_votes","''","``","*","``","``","down_votes","''","``","*","``","``","age","''","``","*","``","``","gender","''","``","*","``","``","accent","''","``"]
code: def __getitem__(self, n: int) -> Tuple[Tensor, int, Dict[str, str]]:
      """Load the n-th sample from the dataset.
  
      Args:
          n (int): The index of the sample to be loaded
  
      Returns:
          Tuple of the following items;
  
          Tensor:
              Waveform
          int:
              Sample rate
          Dict[str, str]:
              Dictionary containing the following items from the corresponding TSV file;
  
              * ``"client_id"``
              * ``"path"``
              * ``"sentence"``
              * ``"up_votes"``
              * ``"down_votes"``
              * ``"age"``
              * ``"gender"``
              * ``"accent"``
      """
      line = self._walker[n]
      return load_commonvoice_item(
          line,
          self._header,
          self._path,
          self._folder_audio,
          self._ext_audio,
      )
  
file_path: audio/src/torchaudio/datasets/commonvoice.py
imports: import csv
  import os
  from pathlib import Path
  from typing import Dict, List, Tuple, Union
  import torchaudio
  from torch import Tensor
  from torch.utils.data import Dataset
label_desc: Use image node_id 2 for calling the COMMONVOICE obj's underlying member method code with example usage: obj.__getitem__(n) and returns: load_commonvoice_item