Load data using the the index in getitem

You need to write a custom collate function to collect the output of __getitem__() method into a list or tuple. An example of custom collate function: