class_docstr: DatasetBuilder for istella dataset.
class_docstr_tok: ["DatasetBuilder","for","istella","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path):
      """Yields examples."""
      # Istella datasets seems to be encoded as latin1 and not utf-8, so we have
      # to read the file contents as bytes and manually decode it as latin1.
      with tf.io.gfile.GFile(path, "rb") as f:
          lines = map(lambda bytes_line: bytes_line.decode("latin1"), f)
          yield from LibSVMRankingParser(
              lines, _FEATURE_NAMES, _LABEL_NAME, combine_features=True
          )
  
file_path: datasets/tensorflow_datasets/ranking/istella/istella.py
imports: import dataclasses
  from typing import Optional
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
  from tensorflow_datasets.ranking.libsvm_ranking_parser import LibSVMRankingParser
label_desc: Use image node_id 3 for calling the Istella obj's underlying member method code with example usage: obj._generate_examples(path) without return types