code: def _file_execution_loop(dirpath):
      num_attempts, successful_executions, failed_executions = 0, [], []
  
      for filename in _filter_files(dirpath):
          start_time = datetime.now()
          num_attempts += 1
          print("#" * 80)
          print(
              "##### {} ##### EXECUTING FILE: {} #####".format(
                  start_time, filename
              )
          )
  
          try:
              check_call(["python", filename])
              successful_executions.append(
                  (filename, (datetime.now() - start_time))
              )
          except CalledProcessError as _ex:
              failed_executions.append(
                  (filename, (datetime.now() - start_time), _ex)
              )
  
          print("." * 80)
          print(
              "##### {} ##### FINISHED WITH FILE: {} #####".format(
                  datetime.now(), filename
              )
          )
          print("#" * 80)
  
      return num_attempts, successful_executions, failed_executions
  
imports: from datetime import datetime
  from os import getcwd, walk
  import os.path
  from subprocess import check_call, CalledProcessError
label_desc: Use image node_id 2 for calling a global function with example usage: _file_execution_loop(dirpath) and returns: num_attempts,  successful_executions,  failed_executions