def read_orig_examples(data_paths: Iterable[str]) -> Iterator[RawExample]:
  """Reads and deserializes JSONLs from files."""
  source_files = expand_path_patterns(data_paths)
  for source_file in source_files:
    logging.info("Start reading from %s", source_file)
    with tf.io.gfile.GFile(source_file) as reader:
      for line in reader:
        yield json.loads(line)
Reads and deserializes JSONLs from files.
language/casper/augment/cached_retrieval_to_dataset_lib.py