class_docstr: Sun397 Scene Recognition Benchmark.
class_docstr_tok: ["Sun397","Scene","Recognition","Benchmark","."]
code: def _get_partition_subsets_images(self, partitions_dir):
      # Get the ID of all images in the dataset.
      all_images = set()
      for split_images in self._get_tfds_subsets_images().values():
          all_images.update(split_images)
      # Load the images in the training/test split of this partition.
      filenames = {
          "tr": "Training_%02d.txt" % self.builder_config.partition,
          "te": "Testing_%02d.txt" % self.builder_config.partition,
      }
      splits_sets = {}
      for split, filename in filenames.items():
          filepath = os.path.join(partitions_dir, filename)
          splits_sets[split] = self._load_image_set_from_file(filepath)
      # Put the remaining images in the dataset into the "validation" split.
      splits_sets["va"] = all_images - (
          splits_sets["tr"] | splits_sets["te"]
      )
      return splits_sets
  
imports: import io
  import os
  from absl import logging
  import numpy
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 6 for calling the Builder obj's underlying member method code with example usage: obj._get_partition_subsets_images(partitions_dir) and returns: splits_sets