code: def subfiles(folder: str, suffix: str = None):
      res = [
          os.path.join(folder, i)
          for i in os.listdir(folder)
          if os.path.isfile(os.path.join(folder, i))
          and (suffix is None or i.endswith(suffix))
      ]
      return res
  
file_path: PaddleSeg/contrib/MedicalSeg/nnunet/all_folds_eval.py
imports: import argparse
  import os
  import sys
  import json
  import shutil
  from typing import Tuple
  from nnunet.utils import aggregate_scores, determine_postprocessing
label_desc: Use image node_id 3 for calling a global function with example usage: subfiles(folder, suffix) and returns: res