code: def evaluate_expression(expression, variables):
      # Create a dictionary to hold the variable values
      variables_dict = {}
      # Populate the variables_dict with the provided variables
      for variable_name, variable_value in variables.items():
          variables_dict[variable_name] = variable_value
      # Evaluate the expression using eval()
      result = eval(expression, variables_dict)
      return result
  
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 2 for calling a global function with example usage: evaluate_expression(expression, variables) and returns: result