code: def call_function_with_dirs(
      dirs, module_name, function_name, **kargs
  ):
      for dir in dirs:
          try:
              data = dynamic_function_call(
                  dir + module_name,
                  function_name,
                  **kargs,
              )
              if data:
                  return data
          except Exception as error:
              if type(error) not in [ModuleNotFoundError]:
                  raise error
  
file_path: vowpal_wabbit/python/tests/e2e_v2/test_helper.py
imports: import json
  import importlib
  import os
  import itertools
  import inspect
  import shutil
label_desc: Use image node_id 7 for calling a global function with example usage: call_function_with_dirs(dirs, module_name, function_name) and returns: data