class_docstr: FUSS: Free Universal Sound Separation dataset.
docstr: Generates examples for the given split.
docstr_tok: ["Generates","examples","for","the","given","split","."]
code: def _generate_examples(self, base_dir, split):
      """Generates examples for the given split."""
      path = os.path.join(base_dir, "%s_example_list.txt" % split)
      split_dir = os.path.join(base_dir, split)
      with epath.Path(path).open() as example_list:
          for line in example_list:
              paths = line.split()
              key = _basename_without_ext(paths[0])
              sources = []
              for p in paths[1:]:
                  sources.append(
                      {
                          "audio": os.path.join(base_dir, p),
                          "label": _basename_without_ext(p).split("_")[
                              0
                          ],
                      }
                  )
              segments = self._parse_segments(
                  os.path.join(split_dir, "%s.txt" % key)
              )
              jams = tf.io.gfile.GFile(
                  os.path.join(split_dir, "%s.jams" % key)
              ).read()
              example = {
                  "mixture_audio": os.path.join(base_dir, paths[0]),
                  "sources": sources,
                  "segments": segments,
                  "jams": jams,
                  "id": key,
              }
              yield key, example
  
file_path: datasets/tensorflow_datasets/audio/fuss.py
imports: from __future__ import annotations
  import os
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the Fuss obj's underlying member method code with example usage: obj._generate_examples(base_dir, split) without return types