code: def find_in_dir_with_ext(
      dirname: str, extensions: Union[str, List[str]]
  ) -> List[str]:
      return [
          os.path.join(dirname, fname)
          for fname in sorted(os.listdir(dirname))
          if has_ext(fname, extensions)
      ]
  
file_path: pytorch-toolbelt/pytorch_toolbelt/utils/fs.py
imports: import glob
  import os
  from pathlib import Path
  from typing import Union, List, Iterable
  import cv2
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: find_in_dir_with_ext(dirname, extensions) and returns: unknown