    def state_dict(self):
        """Returns a dictionary containing a whole state of the iterator."""
        raise NotImplementedError
Returns a dictionary containing a whole state of the iterator.
fairseq/data/iterators.py