code: def _parse_row_as_example(row, mode):
      """Parse elements to TF Example, as appropriate for specified mode."""
      example = _parse_common(row)
      for label in _labels(mode):
          if not row[label]:
              return
          example[label] = float(row[label])
      return example
  
file_path: datasets/tensorflow_datasets/text/civil_comments.py
imports: from __future__ import annotations
  import ast
  import csv
  import os
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_row_as_example(row, mode) and returns: example