def METHOD_NAME(self, index):
    """Return an example's size as a float or tuple. This value is used when
    filtering a dataset with ``--max-positions``."""
    return {
        key: dataset.METHOD_NAME(self._map_index(key, index))
        for key, dataset in self.datasets.items()
    }