code: def remove_all_files(remove, path_of_data):
      assert remove in [0, 1]
      if remove == 1:
          os.system("rm -f " + path_of_data + "/*")
      dir_list = os.listdir(path_of_data)
      for file in dir_list:
          if "~" in file:
              os.system("rm -f " + path_of_data + "/" + file)
      dir_list = os.listdir(path_of_data)
  
      if remove == 1:
          if len(dir_list) == 0:
              print(f"dir_list: {dir_list}. Right.")
          else:
              print(
                  "dir_list: {}. Wrong. You should remove all files by hands.".format(
                      dir_list
                  )
              )
          assert len(dir_list) == 0
      else:
          if len(dir_list) == 0:
              print(f"dir_list: {dir_list}. Wrong. There is not data.")
          else:
              print(f"dir_list: {dir_list}. Right.")
          assert len(dir_list) > 0
  
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 4 for calling a global function with example usage: remove_all_files(remove, path_of_data) without return types