class_docstr: Long-tailed version of the ImageNet2012 dataset.
class_docstr_tok: ["Long-tailed","version","of","the","ImageNet2012","dataset","."]
docstr: Postprocess the subset list.
docstr_tok: ["Postprocess","the","subset","list","."]
code: def _postprocess_subset_list(self, subset):
      """Postprocess the subset list."""
  
      # The original subset contains lines such as
      # "train/n01440764/n01440764_190.JPEG 0".
      # Postprocessing removes the redundant info and only keeps the image name,
      # i.e. n01440764_190.JPEG.
      post_subset = [
          os.path.basename(cur_item.split(" ")[0])
          for cur_item in subset
      ]
      return post_subset
  
file_path: datasets/tensorflow_datasets/datasets/imagenet_lt/imagenet_lt_dataset_builder.py
imports: import io
  import os
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.datasets.imagenet2012 import imagenet_common
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._postprocess_subset_list(subset) and returns: post_subset