class_docstr: This is a dataset for paraphrase identification.
class_docstr_tok: ["This","is","a","dataset","for","paraphrase","identification","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
      dl_paths = dl_manager.download_and_extract(_DOWNLOAD_URLS)
      subset = self.builder_config.subset
      labels_path = os.path.join(
          dl_paths[subset], _EXTRACTED_FOLDERS[subset]
      )
  
      if self.builder_config.tokenized:
          mappings_path = ""
          tags2texts = {}
      else:
          mapping_base_dir = os.path.join(
              dl_paths[_RAW_MAPPING], "wiki_raw_and_mapping"
          )
          mappings_path = os.path.join(
              mapping_base_dir, f"{subset}_mapping"
          )
          swap_path = os.path.join(
              mapping_base_dir, "input_swap_wiki_50k.tsv"
          )
          backtransl_path = os.path.join(
              mapping_base_dir, "input_backtransl_wiki_with_swap_id.tsv"
          )
          tags2texts = {}
          with epath.Path(swap_path).open() as f:
              reader = csv.DictReader(
                  f, delimiter="\t", quoting=csv.QUOTE_NONE
              )
              # tsv file format: id  sentence1  sentence2
              for row in reader:
                  tags2texts[f"{row['id']}_1"] = row["sentence1"]
                  tags2texts[f"{row['id']}_2"] = row["sentence2"]
  
          with epath.Path(backtransl_path).open() as f:
              reader = csv.DictReader(
                  f, delimiter="\t", quoting=csv.QUOTE_NONE
              )
              # tsv file format: id  sentence1  sentence2  swap_id
              for row in reader:
                  tags2texts[f"{row['id']}_2"] = row["sentence2"]
  
      return [  # pylint: disable=g-complex-comprehension
          tfds.core.SplitGenerator(
              name=_SPLIT_MAPPINGS[split],
              gen_kwargs={
                  "labels_path": os.path.join(
                      labels_path, f"{split}.tsv"
                  ),
                  "mappings_path": os.path.join(
                      mappings_path, f"{split}.tsv"
                  ),
                  "tags2texts": tags2texts,
              },
          )
          for split in _SUBSET_SPLITS[subset]
      ]
  
file_path: datasets/tensorflow_datasets/datasets/paws_wiki/paws_wiki_dataset_builder.py
imports: import csv
  import os
  from typing import Dict
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: unknown