code: def _find_files_with_glob(
      folder: epath.Path, globs: list[str], file_names: list[str]
  ) -> Iterator[epath.Path]:
      """Finds files matching any of the given globs and given file names."""
      for glob in globs:
          try:
              for file in folder.glob(glob):
                  if file.name in file_names:
                      yield file
          except OSError:
              # If permission was denied on any subfolder, then the glob fails. Manually
              # iterate through the subfolders instead to be more robust against this.
              yield from _find_files_without_glob(
                  folder, globs, file_names
              )
  
imports: import collections
  import functools
  import os
  import re
  import time
  from typing import Iterator, List, Optional
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core.utils import docs
  from tensorflow_datasets.core.utils import py_utils
  from tensorflow_datasets.core.utils import read_config
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 7 for calling a global function with example usage: _find_files_with_glob(folder, globs, file_names) without return types