class_docstr: *Speech Commands* :cite:`speechcommandsv2` dataset.
  
  Args:
      root (str or Path): Path to the directory where the dataset is found or downloaded.
      url (str, optional): The URL to download the dataset from,
          or the type of the dataset to dowload.
          Allowed type values are ``"speech_commands_v0.01"`` and ``"speech_commands_v0.02"``
          (default: ``"speech_commands_v0.02"``)
      folder_in_archive (str, optional):
          The top-level directory of the dataset. (default: ``"SpeechCommands"``)
      download (bool, optional):
          Whether to download the dataset if it is not found at root path. (default: ``False``).
      subset (str or None, optional):
          Select a subset of the dataset [None, "training", "validation", "testing"]. None means
          the whole dataset. "validation" and "testing" are defined in "validation_list.txt" and
          "testing_list.txt", respectively, and "training" is the rest. Details for the files
          "validation_list.txt" and "testing_list.txt" are explained in the README of the dataset
          and in the introduction of Section 7 of the original paper and its reference 12. The
          original paper can be found `here <https://arxiv.org/pdf/1804.03209.pdf>`_. (Default: ``None``)
class_docstr_tok: ["*","Speech","Commands","*",":","cite",":","`","speechcommandsv2","`","dataset",".","Args",":","root","(","str","or","Path",")",":","Path","to","the","directory","where","the","dataset","is","found","or","downloaded",".","url","(","str",",","optional",")",":","The","URL","to","download","the","dataset","from",",","or","the","type","of","the","dataset","to","dowload",".","Allowed","type","values","are","``","``","speech_commands_v0.01","''","``","and","``","``","speech_commands_v0.02","''","``","(","default",":","``","``","speech_commands_v0.02","''","``",")","folder_in_archive","(","str",",","optional",")",":","The","top-level","directory","of","the","dataset",".","(","default",":","``","``","SpeechCommands","''","``",")","download","(","bool",",","optional",")",":","Whether","to","download","the","dataset","if","it","is","not","found","at","root","path",".","(","default",":","``","False","``",")",".","subset","(","str","or","None",",","optional",")",":","Select","a","subset","of","the","dataset","[","None",",","``","training","''",",","``","validation","''",",","``","testing","''","]",".","None","means","the","whole","dataset",".","``","validation","''","and","``","testing","''","are","defined","in","``","validation_list.txt","''","and","``","testing_list.txt","''",",","respectively",",","and","``","training","''","is","the","rest",".","Details","for","the","files","``","validation_list.txt","''","and","``","testing_list.txt","''","are","explained","in","the","README","of","the","dataset","and","in","the","introduction","of","Section","7","of","the","original","paper","and","its","reference","12",".","The","original","paper","can","be","found","`","here","<","https",":","\/\/arxiv.org\/pdf\/1804.03209.pdf",">","`","_",".","(","Default",":","``","None","``",")"]
docstr: Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform,
  but otherwise returns the same fields as :py:func:`__getitem__`.
  
  Args:
      n (int): The index of the sample to be loaded
  
  Returns:
      Tuple of the following items;
  
      str:
          Path to the audio
      int:
          Sample rate
      str:
          Label
      str:
          Speaker ID
      int:
          Utterance number
docstr_tok: ["Get","metadata","for","the","n-th","sample","from","the","dataset",".","Returns","filepath","instead","of","waveform",",","but","otherwise","returns","the","same","fields","as",":","py",":","func",":","`","__getitem__","`",".","Args",":","n","(","int",")",":","The","index","of","the","sample","to","be","loaded","Returns",":","Tuple","of","the","following","items",";","str",":","Path","to","the","audio","int",":","Sample","rate","str",":","Label","str",":","Speaker","ID","int",":","Utterance","number"]
code: def get_metadata(self, n: int) -> Tuple[str, int, str, str, int]:
      """Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform,
      but otherwise returns the same fields as :py:func:`__getitem__`.
  
      Args:
          n (int): The index of the sample to be loaded
  
      Returns:
          Tuple of the following items;
  
          str:
              Path to the audio
          int:
              Sample rate
          str:
              Label
          str:
              Speaker ID
          int:
              Utterance number
      """
      fileid = self._walker[n]
      return _get_speechcommands_metadata(fileid, self._archive)
  
file_path: audio/src/torchaudio/datasets/speechcommands.py
imports: import os
  from pathlib import Path
  from typing import Optional, Tuple, Union
  from torch import Tensor
  from torch.utils.data import Dataset
  from torchaudio._internal import download_url_to_file
  from torchaudio.datasets.utils import _extract_tar, _load_waveform
label_desc: Use image node_id 2 for calling the SPEECHCOMMANDS obj's underlying member method code with example usage: obj.get_metadata(n) and returns: _get_speechcommands_metadata