class_docstr: Dataset of Reddit comments with one or more emotion labels.
code: def _parse_row_as_example(self, row):
      example = {}
  
      if len(row) != 3:
          return example
  
      example[_TEXT_LABEL] = row["comment_text"]
  
      emotion_ids = row["emotion_ids"].split(",")
      for emotion_id in emotion_ids:
          emotion_id = int(emotion_id)
          example[_EMOTION_LABELS[emotion_id]] = True
  
      for i in range(len(_EMOTION_LABELS)):
          if _EMOTION_LABELS[i] not in example.keys():
              example[_EMOTION_LABELS[i]] = False
  
      return example
  
file_path: datasets/tensorflow_datasets/text/goemotions.py
imports: import csv
  from etils import epath
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Goemotions obj's underlying member method code with example usage: obj._parse_row_as_example(row) and returns: example, example