code: def get_all_functions_from_directory(root_dir, startswith="test"):
      if not os.path.exists(root_dir):
          print("Invalid directory")
          sys.exit(1)
      functions_names = []
      for filename in glob.iglob(f"{root_dir}/**/*.py", recursive=True):
          if len(filename) >= 2 and filename[:2] == "./":
              filename = filename[2:]
          filename = filename.replace(".py", "")
          filename = filename.replace("/", ".")
          module = importlib.import_module(filename)
          module_functions_names = [
              obj for obj in dir(module) if obj.startswith(startswith)
          ]
          functions_names.extend(module_functions_names)
      return functions_names
  
imports: import importlib
  import os
  import sys
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: get_all_functions_from_directory(root_dir, startswith) and returns: functions_names