class_docstr: DatasetBuilder for imagenet_pi dataset.
class_docstr_tok: ["DatasetBuilder","for","imagenet_pi","dataset","."]
code: def _get_validation_annotator_confidences(self, dl_manager):
      confidences_path = (
          dl_manager.manual_dir / "confidences" / "validation.csv"
      )
      confidences_path = epath.Path(confidences_path)
      if not confidences_path.exists():
          raise AssertionError(
              self._assertion_error_msg(
                  "validation annotator confidences",
                  os.fspath(confidences_path),
              )
          )
      return self._get_values_from_csv(
          confidences_path.read_text().splitlines(), to_type=float
      )
  
file_path: datasets/tensorflow_datasets/datasets/imagenet_pi/imagenet_pi_dataset_builder.py
imports: import io
  import os
  from etils import epath
  import numpy
  from tensorflow_datasets.datasets.imagenet2012 import imagenet_common
  import tensorflow_datasets.public_api
label_desc: Use image node_id 7 for calling the Builder obj's underlying member method code with example usage: obj._get_validation_annotator_confidences(dl_manager) and returns: self