class_docstr: DatasetBuilder for asset dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepaths, split):
      """Yields examples."""
  
      if self.builder_config.name == "simplification":
          files = [
              tf.io.gfile.GFile(filepaths[f"asset.{split}.orig"])
          ] + [
              tf.io.gfile.GFile(filepaths[f"asset.{split}.simp.{i}"])
              for i in range(10)
          ]
          for id_, lines in enumerate(zip(*files)):
              yield id_, {
                  "original": lines[0].strip(),
                  "simplifications": [
                      line.strip() for line in lines[1:]
                  ],
              }
      else:
          with tf.io.gfile.GFile(filepaths["human_ratings.csv"]) as f:
              reader = csv.reader(f, delimiter=",")
              for id_, row in enumerate(reader):
                  if id_ == 0:
                      keys = row[:]
                  else:
                      res = {}
                      for k, v in zip(keys, row):
                          res[k] = v
                      for k in [
                          "original_sentence_id",
                          "worker_id",
                          "rating",
                      ]:
                          res[k] = int(res[k])
                      yield (id_ - 1), res
  
file_path: datasets/tensorflow_datasets/datasets/asset/asset_dataset_builder.py
imports: import csv
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  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(filepaths, split) without return types