def __getitem__(self, index):
    """
    Get item from dataset
    :param index: index in the dataset
    :return: (audio, target) where target is index of the target class.
    :rtype: tuple[dict, int]
    """
    data, target = self.data[index]
    if self.transform is not None:
      data = self.transform(data)

    return data, target
def __getitem__ ( self , index ) : data , target = self . data [ index ] if self . transform is not None : data = self . transform ( data ) return data , target
Get item from dataset
    :param index: index in the dataset
    :return: (audio, target) where target is index of the target class.
    :rtype: tuple[dict, int]