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:
__getitem__()