code: def get_file_paths(path):
      file_paths = []
      for root, dirs, files in os.walk(path):
          for file in files:
              file_paths.append(os.path.join(root, file))
      return file_paths
  
file_path: PaddleSeg/contrib/QualityInspector/tools/dataset/cal_class_weights.py
imports: import argparse
  import os
  import sys
  from collections import defaultdict
  from multiprocessing import Pool, cpu_count
  import cv2
  import numpy
  import prettytable
  import paddle
  import paddle.nn.functional
  from qinspector.utils.logger import setup_logger
label_desc: Use image node_id 4 for calling a global function with example usage: get_file_paths(path) and returns: file_paths