class_docstr: GTSRB Dataset
  
  homepage="https://benchmark.ini.rub.de"
class_docstr_tok: ["GTSRB","Dataset","homepage=","''","https",":","\/\/benchmark.ini.rub.de","''"]
code: def _classify_train_archive(
      self, data: Tuple[str, Any]
  ) -> Optional[int]:
      path = pathlib.Path(data[0])
      if path.suffix == ".ppm":
          return 0
      elif path.suffix == ".csv":
          return 1
      else:
          return None
  
file_path: vision/torchvision/prototype/datasets/_builtin/gtsrb.py
imports: import pathlib
  from typing import Any, Dict, List, Optional, Tuple, Union
  from torchdata.datapipes.iter import CSVDictParser, Demultiplexer, Filter, IterDataPipe, Mapper, Zipper
  from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
  from torchvision.prototype.datasets.utils._internal import hint_sharding, hint_shuffling, INFINITE_BUFFER_SIZE, path_comparator
  from torchvision.prototype.tv_tensors import Label
  from torchvision.tv_tensors import BoundingBoxes
  from .._api import register_dataset, register_info
label_desc: Use image node_id 3 for calling the GTSRB obj's underlying member method code with example usage: obj._classify_train_archive(data) and returns: int, int, None