code: def get_file_list(path):
      """get_file_list"""
      filelist = []
      if os.path.isfile(path):
          filelist = [path]
      elif os.path.isdir(path):
          filelist = [
              os.path.join(dp, f)
              for dp, dn, filenames in os.walk(path)
              for f in filenames
          ]
      else:
          raise ValueError(path + " not supported")
      return filelist
  
imports: import argparse
  import time
  import os
  import glob
  import numpy
  import paddle.fluid
  import paddle.fluid.layers
  from pgl.utils.logger import log
  from pgl.graph import Graph
  from pgl.sample import graph_alias_sample_table
  from pgl import data_loader
  import mp_reader
  from reader import GESReader
  from model import GESModel
label_desc: Use image node_id 1 for calling a global function with example usage: get_file_list(path) and returns: filelist