code: def _find_image_in_dirs(image_dirs, filename):
      """Finds `filename` in one of the `image_dir` folders."""
      images = [
          d / filename for d in image_dirs if (d / filename).exists()
      ]
      assert len(images) == 1, (images, image_dirs, filename)
      return images[0]
  
imports: from __future__ import annotations
  import collections
  import json
  import pathlib
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 for calling a global function with example usage: _find_image_in_dirs(image_dirs, filename) and returns: images