code: def load_utilities(test_file=None):
      utils_pat = re.compile(r".*/_\w+\.py$")
      ff = file_filter(
          include=(lambda p: utils_pat.match(p)),
          exclude="*/__init__.py",
      )
      recursive = False
      folders = []
      if test_file is None:
          # loads every utility file under tests
          folders.append(os.path.dirname(__file__))
          recursive = True
      else:
          folder = os.path.dirname(test_file)
          while os.path.basename(folder) != "tests":
              folders.append(folder)
              folder = os.path.dirname(folder)
          folders.reverse()  # we the closest to load last in case of name conflict
      utilities = list_all_files(
          folders, filter_=ff, recursive=recursive
      )
      print("loading the following test utility modules: ", utilities)
      for u in utilities:
          d = os.path.dirname(u)
          f = os.path.basename(u)
          m, _ = os.path.splitext(f)
          load_module(m, d)
  
file_path: h2o-3/h2o-py/tests/_utils.py
imports: import fnmatch
  import importlib
  import os
  import re
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: load_utilities(test_file) without return types