def expand_path_patterns(path_patterns: Iterable[str]) -> Sequence[str]:
  """Expands the glob patterns in the given list."""
  paths = []
  for pattern in path_patterns:
    paths.extend(tf.io.gfile.glob(pattern))
  return paths
Expands the glob patterns in the given list.
language/casper/augment/cached_retrieval_to_dataset_lib.py