code: def list_files(path: str, suffixes: List) -> List:
      """Retrieve file list from the path.
  
      Args:
          path (str): Path to the directory.
          suffixes (list[str], optional): Suffixes to be retrieved.
  
      Returns:
          List: List of the files.
      """
  
      file_list = []
      for suffix in suffixes:
          file_list.extend(glob(osp.join(path, "*" + suffix)))
  
      return file_list
  
file_path: mmocr/mmocr/utils/fileio.py
imports: import hashlib
  import os.path
  import sys
  import warnings
  from glob import glob
  from typing import List
  from mmengine import mkdir_or_exist
label_desc: Use image node_id 6 for calling a global function with example usage: list_files(path, suffixes) and returns: file_list