code: def _generate_builder_configs():
      """Return the BuilderConfig objects for the SUN397 dataset."""
      version = tfds.core.Version("4.0.0")
      builder_configs = [
          # Images randomly split into train/valid/test splits (70%/10%/20%), and
          # images resized to have at most 120,000 pixels.
          Sun397Config(
              name="tfds",
              version=version,
              target_pixels=120000,
              description=(
                  "TFDS partition with random train/validation/test splits with "
                  "70%/10%/20% of the images, respectively. Images are resized to "
                  "have at most 120,000 pixels, and are compressed with 72 JPEG "
                  "quality."
              ),
          ),
      ]
      # Configs for each of the standard partitions of the dataset.
      for partition in range(1, 10 + 1):
          description = _SUN397_BUILDER_CONFIG_DESCRIPTION_PATTERN % (
              partition,
              "120,000",
          )
          builder_configs.append(
              Sun397Config(
                  name="standard-part%d-120k" % partition,
                  partition=partition,
                  target_pixels=120000,
                  version=version,
                  description=description,
              )
          )
      return builder_configs
  
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 4 for calling a global function with example usage: _generate_builder_configs() and returns: builder_configs