parameters: (self, index)
return_statement: return img, target
docstring: Args:
              index (int): Index
  
          Returns:
              tuple: (image, target) where target is class_index of the target class.
docstring_summary: Args:
              index (int): Index
docstring_tokens: Args : index ( int ) : Index
function: def __getitem__(self, index):
          """
          Args:
              index (int): Index
  
          Returns:
              tuple: (image, target) where target is class_index of the target class.
          """
          path, target = self.imgs[index]
          img = self.loader(path)
          if self.transform is not None:
              img = self.transform(img)
          if self.target_transform is not None:
              target = self.target_transform(target)
  
          return img, target
function_tokens: def __getitem__ ( self , index ) : path , target = self . imgs [ index ] img = self . loader ( path ) if self . transform is not None : img = self . transform ( img ) if self . target_transform is not None : target = self . target_transform ( target ) return img , target