class_docstr: A dataset that provides helpers for batching.
class_docstr_tok: ["A","dataset","that","provides","helpers","for","batching","."]
docstr: Return an example's size as a float or tuple. This value is used when
  filtering a dataset with ``--max-positions``.
docstr_tok: ["Return","an","example","'s","size","as","a","float","or","tuple",".","This","value","is","used","when","filtering","a","dataset","with","``","--","max-positions","``","."]
code: def size(self, index):
      """Return an example's size as a float or tuple. This value is used when
      filtering a dataset with ``--max-positions``."""
      raise NotImplementedError
  
imports: import logging
  import numpy
  import torch.utils.data
  from fairseq.data import data_utils
label_desc: Use image node_id 6 for calling the FairseqDataset obj's underlying member method code with example usage: obj.size(index) without return types