class_docstr: Semeion dataset
  homepage="https://archive.ics.uci.edu/ml/datasets/Semeion+Handwritten+Digit",
class_docstr_tok: ["Semeion","dataset","homepage=","''","https",":","\/\/archive.ics.uci.edu\/ml\/datasets\/Semeion+Handwritten+Digit","''",","]
code: def _prepare_sample(self, data: Tuple[str, ...]) -> Dict[str, Any]:
      image_data, label_data = data[:256], data[256:-1]
  
      return dict(
          image=Image(
              torch.tensor(
                  [float(pixel) for pixel in image_data],
                  dtype=torch.float,
              ).reshape(16, 16)
          ),
          label=OneHotLabel(
              [int(label) for label in label_data],
              categories=self._categories,
          ),
      )
  
file_path: vision/torchvision/prototype/datasets/_builtin/semeion.py
imports: import pathlib
  from typing import Any, Dict, List, Tuple, Union
  import torch
  from torchdata.datapipes.iter import CSVParser, IterDataPipe, Mapper
  from torchvision.prototype.datasets.utils import Dataset, HttpResource, OnlineResource
  from torchvision.prototype.datasets.utils._internal import hint_sharding, hint_shuffling
  from torchvision.prototype.tv_tensors import OneHotLabel
  from torchvision.tv_tensors import Image
  from .._api import register_dataset, register_info
label_desc: Use image node_id 3 for calling the SEMEION obj's underlying member method code with example usage: obj._prepare_sample(data) and returns: dict