code: def nifti_files(
      folder: str, join: bool = True, sort: bool = True
  ) -> List[str]:
      return subfiles(folder, join=join, sort=sort, suffix=".nii.gz")
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/file_and_folder_operations.py
imports: import os
  import pickle
  import json
  from typing import List
  from .path_utils import join_paths
label_desc: Use image node_id 3 for calling a global function with example usage: nifti_files(folder, join, sort) and returns: subfiles