class_docstr: - **homepage**: http://host.robots.ox.ac.uk/pascal/VOC/
class_docstr_tok: ["-","*","*","homepage","*","*",":","http",":","\/\/host.robots.ox.ac.uk\/pascal\/VOC\/"]
code: def _resources(self) -> List[OnlineResource]:
      file_name, sha256 = (
          self._TEST_ARCHIVES
          if self._split == "test"
          else self._TRAIN_VAL_ARCHIVES
      )[self._year]
      archive = HttpResource(
          f"http://host.robots.ox.ac.uk/pascal/VOC/voc{self._year}/{file_name}",
          sha256=sha256,
      )
      return [archive]
  
imports: import enum
  import functools
  import pathlib
  from typing import Any, BinaryIO, cast, Dict, List, Optional, Tuple, Union
  from xml.etree import ElementTree
  from torchdata.datapipes.iter import Demultiplexer, Filter, IterDataPipe, IterKeyZipper, LineReader, Mapper
  from torchvision.datasets import VOCDetection
  from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
  from torchvision.prototype.datasets.utils._internal import getitem, hint_sharding, hint_shuffling, INFINITE_BUFFER_SIZE, path_accessor, path_comparator, read_categories_file
  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 2 for calling the VOC obj's underlying member method code with example usage: obj._resources() and returns: list