code: def checkErrors(result, error_msgs):
      if Settings.execution_mode != ExecutionMode.GENERATOR:
          # NOTE kahro william percy mario : here we tell to gpuci there was
          # an error comparing with historic results
          # TODO william kharoly felipe we should try to enable and
          # use this function in the future
          if result is False:
              for error_msg in error_msgs:
                  print(error_msg)
  
              def print_delta_time(startTest, endTest):
                  elapsed = endTest - startTest  # in seconds
  
                  if elapsed < 60:
                      time_delta_desc = str(elapsed) + " seconds"
                  else:
                      time_delta_desc = (
                          str(elapsed / 60)
                          + " minutes and "
                          + str(int(elapsed) % 60)
                          + " seconds"
                      )
  
                  return time_delta_desc
  
              print(
                  "==>> E2E FAILED against previous run, total time was: "
                  + print_delta_time(startTest, endTest)
              )
              return True
      return False
  
file_path: blazingsql/tests/BlazingSQLTest/EndToEndTests/mainE2ETests.py
imports: from Configuration import ExecutionMode
  from Configuration import Settings
  from EndToEndTests.oldScripts import mainE2ELegacyTests
  from DataBase import createSchema
  from pynvml import nvmlInit
  from Utils import Execution, init_context, init_comparators, gpuMemory
  from blazingsql import DataType
  from Runner import runTest
  from Runner import TestSuites
  import sys
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: checkErrors(result, error_msgs) and returns: False, True, time_delta_desc