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 _datapipe(
      self, resource_dps: List[IterDataPipe]
  ) -> IterDataPipe[Dict[str, Any]]:
      dp = resource_dps[0]
      dp = Filter(
          dp,
          path_comparator(
              "parent.parent.name", self._split_folder_name
          ),
      )
      dp = hint_shuffling(dp)
      dp = hint_sharding(dp)
      return Mapper(dp, self._prepare_sample)
  
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 5 for calling the Country211 obj's underlying member method code with example usage: obj._datapipe(resource_dps) and returns: Mapper