class_docstr: - **homepage**: https://github.com/openai/CLIP/blob/main/data/country211.md
class_docstr_tok: ["-","*","*","homepage","*","*",":","https",":","\/\/github.com\/openai\/CLIP\/blob\/main\/data\/country211.md"]
code: def _generate_categories(self) -> List[str]:
      resources = self._resources()
      dp = resources[0].load(self._root)
      return sorted({pathlib.Path(path).parent.name for path, _ in dp})
  
file_path: vision/torchvision/prototype/datasets/_builtin/country211.py
imports: import pathlib
  from typing import Any, Dict, List, Tuple, Union
  from torchdata.datapipes.iter import Filter, IterDataPipe, Mapper
  from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
  from torchvision.prototype.datasets.utils._internal import hint_sharding, hint_shuffling, path_comparator, read_categories_file
  from torchvision.prototype.tv_tensors import Label
  from .._api import register_dataset, register_info
label_desc: Use image node_id 7 for calling the Country211 obj's underlying member method code with example usage: obj._generate_categories() and returns: sorted