class_docstr: The VoxCeleb dataset for speaker identification.
class_docstr_tok: ["The","VoxCeleb","dataset","for","speaker","identification","."]
docstr: Read the train/dev/test splits from VoxCeleb's iden_split.txt file.
docstr_tok: ["Read","the","train\/dev\/test","splits","from","VoxCeleb","'s","iden_split.txt","file","."]
code: def _calculate_splits(self, iden_splits_path):
      """Read the train/dev/test splits from VoxCeleb's iden_split.txt file."""
      data_splits = collections.defaultdict(set)
      with epath.Path(iden_splits_path).open() as f:
          for line in f:
              group, path = line.strip().split()
              split_name = {1: "train", 2: "validation", 3: "test"}[
                  int(group)
              ]
              data_splits[split_name].add(path.strip())
      return data_splits
  
file_path: datasets/tensorflow_datasets/audio/voxceleb.py
imports: import collections
  import os
  from etils import epath
  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 Voxceleb obj's underlying member method code with example usage: obj._calculate_splits(iden_splits_path) and returns: data_splits