class_docstr: Dataset for a class of objects, where each datapoint is a SceneInstanceDataset.
class_docstr_tok: ["Dataset","for","a","class","of","objects",",","where","each","datapoint","is","a","SceneInstanceDataset","."]
code: def collate_fn(self, batch_list):
      # get list of dictionaries and returns input, ground_true as dictionary for all batch instances
      batch_list = zip(*batch_list)
  
      all_parsed = []
      for entry in batch_list:
          if type(entry[0]) is dict:
              # make them all into a new dict
              ret = {}
              for k in entry[0].keys():
                  ret[k] = torch.stack([obj[k] for obj in entry])
              all_parsed.append(ret)
          else:
              all_parsed.append(torch.LongTensor(entry))
  
      return tuple(all_parsed)
  
file_path: insightface/reconstruction/PBIDR/code/datasets/dataset.py
imports: import os
  import torch
  import numpy
  import utils.general
  from utils import rend_util
label_desc: Use image node_id 4 for calling the IFDataset obj's underlying member method code with example usage: obj.collate_fn(batch_list) and returns: tuple