class_docstr: Wiki40B: A Clean Wikipedia Dataset for Mutlilingual Language Modeling.
docstr: Build PCollection of examples.
code: def _build_pcollection(self, pipeline, filepaths):
      """Build PCollection of examples."""
      beam = tfds.core.lazy_imports.apache_beam
      logging.info("generating examples from = %s", filepaths)
  
      def _extract_content(example):
          """Extracts content from a TFExample."""
          wikidata_id = (
              example.features.feature["wikidata_id"]
              .bytes_list.value[0]
              .decode("utf-8")
          )
          text = (
              example.features.feature["text"]
              .bytes_list.value[0]
              .decode("utf-8")
          )
          version_id = (
              example.features.feature["version_id"]
              .bytes_list.value[0]
              .decode("utf-8")
          )
  
          # wikidata_id could be duplicated with different texts.
          yield wikidata_id + text, {
              "wikidata_id": wikidata_id,
              "text": text,
              "version_id": version_id,
          }
  
      return (
          pipeline
          | beam.io.ReadFromTFRecord(
              filepaths, coder=beam.coders.ProtoCoder(tf.train.Example)
          )
          | beam.FlatMap(_extract_content)
      )
  
file_path: datasets/tensorflow_datasets/text/wiki40b.py
imports: import os
  from absl import logging
  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 Wiki40b obj's underlying member method code with example usage: obj._build_pcollection(pipeline, filepaths) and returns: unknown