code: def calc_all_filenames(path):
      dir_list = os.listdir(path)
      dir_list.sort()
      paths2 = []
      for dir in dir_list:
          filename = os.path.join(os.path.abspath(path), dir)
          if (
              ".csv" in filename
              and "#" not in filename
              and "~" not in filename
          ):
              paths2.append(filename)
      return paths2
  
file_path: FinRL/finrl/meta/data_processors/func.py
imports: from __future__ import annotations
  import copy
  import datetime
  import os
  from datetime import date
  from datetime import timedelta
  from typing import List
  from typing import Tuple
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: calc_all_filenames(path) and returns: paths2