class_docstr: The Definite Pronoun Resolution Dataset.
code: def _generate_examples(self, filepath):
      with epath.Path(filepath).open() as f:
          line_num = -1
          while True:
              line_num += 1
              sentence = f.readline().strip()
              pronoun = f.readline().strip()
              candidates = [
                  c.strip() for c in f.readline().strip().split(",")
              ]
              correct = f.readline().strip()
              f.readline()
              if not sentence:
                  break
              yield line_num, {
                  "sentence": sentence,
                  "pronoun": pronoun,
                  "candidates": candidates,
                  "label": candidates.index(correct),
              }
  
imports: from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the DefinitePronounResolution obj's underlying member method code with example usage: obj._generate_examples(filepath) without return types