class_docstr: A class to load dataset for ranking task.
class_docstr_tok: ["A","class","to","load","dataset","for","ranking","task","."]
docstr: Parses raw tensors into a dict of tensors to be consumed by the model.
docstr_tok: ["Parses","raw","tensors","into","a","dict","of","tensors","to","be","consumed","by","the","model","."]
code: def _parse(
      self, record: Mapping[str, tf.Tensor]
  ) -> Tuple[Dict[str, tf.Tensor], tf.Tensor]:
      """Parses raw tensors into a dict of tensors to be consumed by the model."""
      label_feature_name, _ = self._label_spec
      label = record.pop(label_feature_name)
      label = _convert_label(
          label, self._params.convert_labels_to_binary
      )
  
      return record, label
  
imports: import dataclasses
  from typing import Callable, Dict, Mapping, Optional, Tuple, Union
  import tensorflow
  from tensorflow_ranking.python import data
  from tensorflow_ranking.python.keras import losses
  from tensorflow_ranking.python.keras import metrics
  from tensorflow_ranking.python.keras import model
label_desc: Use image node_id 3 for calling the RankingDataLoader obj's underlying member method code with example usage: obj._parse(record) and returns: record,  label