code: def _data_to_image_key(sample: Dict[str, Any]) -> Dict[str, Any]:
      sample["image"] = EncodedImage(sample.pop("data").data)
      return sample
  
file_path: vision/torchvision/prototype/datasets/_folder.py
imports: import functools
  import os
  import os.path
  import pathlib
  from typing import Any, BinaryIO, Collection, Dict, List, Optional, Tuple, Union
  from torchdata.datapipes.iter import FileLister, FileOpener, Filter, IterDataPipe, Mapper
  from torchvision.prototype.datasets.utils import EncodedData, EncodedImage
  from torchvision.prototype.datasets.utils._internal import hint_sharding, hint_shuffling
  from torchvision.prototype.tv_tensors import Label
label_desc: Use image node_id 4 for calling a global function with example usage: _data_to_image_key(sample) and returns: sample