code: def _parse_common(row):
      """Parse common elements to TF Example from CSV row for non-spans mode."""
      example = {}
      example["id"] = row["id"]
      example["text"] = row["comment_text"]
      example["parent_text"] = row["parent_text"]
      example["publication_id"] = row["publication_id"]
      example["created_date"] = row["created_date"]
      parent_id = row["parent_id"] or 0
      example["parent_id"] = int(float(parent_id))
      example["article_id"] = int(row["article_id"])
      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 2 for calling a global function with example usage: _parse_common(row) and returns: example