code: def _parse_wikiheadlines(path):
      """Generates examples from Wikiheadlines dataset file."""
      lang_match = re.match(r".*\.([a-z][a-z])-([a-z][a-z])$", path)
      assert lang_match is not None, (
          "Invalid Wikiheadlines filename: %s" % path
      )
      l1, l2 = lang_match.groups()
      with epath.Path(path).open() as f:
          for line_id, line in enumerate(f):
              s1, s2 = line.split("|||")
              yield line_id, {l1: s1.strip(), l2: s2.strip()}
  
imports: import codecs
  import functools
  import gzip
  import itertools
  import os
  import re
  from typing import List
  from xml.etree import ElementTree
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core.utils import tree_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 7 for calling a global function with example usage: _parse_wikiheadlines(path) without return types