code: def _scan_files(
      dirname,
      extensions: Tuple[str, ...] = (
          ".csv",
          ".pq",
          ".parquet",
          ".json",
      ),
  ) -> List[str]:
      """Scans a directory for files with given extension
  
      Args:
          dirname: directory name
          extensions: extensions to consider
  
      Returns:
          List of files
  
      """
      path_list = [
          os.path.join(dirpath, filename)
          for dirpath, _, filenames in os.walk(dirname)
          for filename in filenames
          if any(map(filename.__contains__, extensions))
          and not filename.startswith("__meta_info__")
      ]
      return path_list
  
imports: import os
  from abc import abstractmethod
  from dataclasses import dataclass
  from typing import Any, Callable, List, Optional, Sequence, Set, Tuple, Union
  from llm_studio.src.nesting import Dependency
label_desc: Use image node_id 2 for calling a global function with example usage: _scan_files(dirname, extensions) and returns: path_list