class_docstr: DatasetBuilder for kdd_cup_99 dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, gz_path):
      """Yields examples."""
      with gz_path.open("rb") as f:
          with gzip.open(f, "rt", newline="") as gz:
              reader = csv.DictReader(gz, self.info.features)
              for index, row in enumerate(reader):
                  row["land"] = bool_utils.parse_bool(row["land"])
                  row["logged_in"] = bool_utils.parse_bool(
                      row["logged_in"]
                  )
                  row["root_shell"] = bool_utils.parse_bool(
                      row["root_shell"]
                  )
                  row["is_hot_login"] = bool_utils.parse_bool(
                      row["is_hot_login"]
                  )
                  row["is_guest_login"] = bool_utils.parse_bool(
                      row["is_guest_login"]
                  )
                  row["label"] = row["label"].rstrip(
                      "."
                  )  # pytype: disable=attribute-error
                  yield index, row
  
file_path: datasets/tensorflow_datasets/datasets/kddcup99/kddcup99_dataset_builder.py
imports: import csv
  import gzip
  import numpy
  from tensorflow_datasets.core.utils import bool_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(gz_path) without return types