class_docstr: Reddit Disentanglement dataset.
class_docstr_tok: ["Reddit","Disentanglement","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path):
      """Yields examples."""
      data = list(_read_csv(path))
      data = _deduplicate(data)
      for link_id, one_topic_data in itertools.groupby(
          data, lambda row: row["link_id"]
      ):
          one_topic_data = list(one_topic_data)
          for row in one_topic_data:
              row["text"] = row.pop("body")
          yield link_id, {_THREAD_KEY: one_topic_data}
  
file_path: datasets/tensorflow_datasets/datasets/reddit_disentanglement/reddit_disentanglement_dataset_builder.py
imports: import collections
  import csv
  import itertools
  import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(path) without return types