class_docstr: Set of triples subject-predicate-object to text.
class_docstr_tok: ["Set","of","triples","subject-predicate-object","to","text","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
  
      def get_files_in_dir(directory):
          all_files = []
          for path, _, files in tf.io.gfile.walk(directory):
              for name in files:
                  all_files.append(os.path.join(path, name))
          return all_files
  
      extracted_path = os.path.join(
          dl_manager.download_and_extract(_URL),
          "webnlg-dataset-master",
          "webnlg_challenge_2017",
      )
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "list_files": get_files_in_dir(
                      os.path.join(extracted_path, "train")
                  ),
                  "set_name": "train",
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "list_files": get_files_in_dir(
                      os.path.join(extracted_path, "dev")
                  ),
                  "set_name": "validation",
              },
          ),
          tfds.core.SplitGenerator(
              name="test_unseen",
              gen_kwargs={
                  "list_files": [
                      os.path.join(
                          extracted_path,
                          "test",
                          "testdata_unseen_with_lex.xml",
                      )
                  ],
                  "set_name": "test_unseen",
              },
          ),
          tfds.core.SplitGenerator(
              name="test_all",
              gen_kwargs={
                  "list_files": [
                      os.path.join(
                          extracted_path,
                          "test",
                          "testdata_with_lex.xml",
                      )
                  ],
                  "set_name": "test_all",
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/structured/web_nlg/web_nlg.py
imports: from __future__ import annotations
  import os
  import xml.etree.ElementTree
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the WebNlg obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list, all_files