code: def collater(self, samples):
      if self.reduce:
          return sum(samples)
      else:
          return torch.tensor(samples)
  
file_path: fairseq/fairseq/data/numel_dataset.py
imports: import numpy
  import torch
  from .None import BaseWrapperDataset
label_desc: Use image node_id 4 for calling the NumelDataset obj's underlying member method code with example usage: obj.collater(samples) and returns: sum, torch