code: def _get_files(p, fs, extensions=None):
      p = Path(p)
      res = [
          p / f
          for f in fs
          if not f.startswith(".")
          and (
              (not extensions)
              or f'.{f.split(".")[-1].lower()}' in extensions
          )
      ]
      return res
  
label_desc: Use image node_id 1 for calling a global function with example usage: _get_files(p, fs, extensions) and returns: res