code: def run_all(args):
      if args.assert_gpu and "gpu" not in available_devices:
          raise RuntimeError("GPU device not available or not detected")
  
      success = 0
      num = 0
      for edir, ldir in ex_log_dirs:
          s, n = run(edir, ldir, args)
          success += s
          num += n
      if success != num:
          print(
              "{}/{} examples passed/skipped, "
              "{} failed".format(success, num, num - success)
          )
          print("Error(s) occured. Logs can be found in " + logdir)
          return 4711
      print("{}/{} examples passed/skipped".format(success, num))
      return 0
  
file_path: scikit-learn-intelex/tests/run_examples.py
imports: import argparse
  import os
  import struct
  import subprocess
  import sys
  from collections import defaultdict
  from os.path import join
  from time import gmtime, strftime
  from daal4py import __has_dist__
  from daal4py.sklearn._utils import get_daal_version
label_desc: Use image node_id 7 for calling a global function with example usage: run_all(args) and returns: int, int