code: def __iter__(self) -> Iterator[Tuple[Any, Any]]:
      for i in range(len(self.x_data)):
          yield self.x_data[i], self.y_data[i]
  
imports: from abc import ABC
  from typing import Iterable, Iterator, TYPE_CHECKING
  from typing import List, Any, Tuple
  import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling the CorpusGenerator obj's underlying member method code with example usage: obj.__iter__() without return types