class_docstr: Data Reader for Open Graph Benchmark datasets.
docstr: Makes a single example generator of the loaded OGB data.
code: def _make_generator(self):
      """Makes a single example generator of the loaded OGB data."""
      idx = 0
      while True:
          # If not repeating, exit when we've cycled through all the graphs.
          # Only return graphs within the split.
          if not self._repeat:
              if idx == self.total_num_graphs:
                  return
          else:
              # This will reset the index to 0 if we are at the end of the dataset.
              idx = idx % self.total_num_graphs
          if idx not in self._split_idx:
              idx += 1
              continue
          graph = self.get_graph_by_idx(idx)
          idx += 1
          yield graph
  
file_path: jraph/jraph/ogb_examples/data_utils.py
imports: import pathlib
  import jraph
  import numpy
  import pandas
label_desc: Use image node_id 7 for calling the DataReader obj's underlying member method code with example usage: obj._make_generator() without return types