code: def dynamic_function_call(
      module_name, function_name, *args, **kwargs
  ):
      try:
          calling_frame = inspect.stack()[1]
          calling_module = inspect.getmodule(calling_frame[0])
          calling_package = calling_module.__package__
          module = importlib.import_module(
              module_name, package=calling_package
          )
          function = getattr(module, function_name)
          result = function(*args, **kwargs)
          return result
      except ImportError:
          pass
      except AttributeError:
          pass
  
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 3 for calling a global function with example usage: dynamic_function_call(module_name, function_name) and returns: result