code: def list_up_files(root_dir, checkers):
      files = []
      path = pathlib.Path(root_dir)
      dir_name = str(path)
      for exclude in _exclude_dirs:
          if exclude == os.path.basename(dir_name):
              return files
  
      for f in path.iterdir():
          if f.is_dir():
              files.extend(list_up_files(f, checkers))
          else:
              for k, c in checkers.items():
                  if c.accept_type(str(f)):
                      c.type = k
                      files.append((f, c))
                      break
              if f.suffix == "":
                  if os.path.basename(str(f)) not in _exclude_files:
                      c = checkers["script"]
                      c.type = "unknown"
                      files.append((f, c))
      return files
  
imports: import argparse
  import os
  import pathlib
  import re
  import subprocess
  from tqdm import tqdm
  from contextlib import contextmanager
label_desc: Use image node_id 4 for calling a global function with example usage: list_up_files(root_dir, checkers) and returns: files, files