code: def get_from_kwargs(kwargs, key, default=None):
      if key in kwargs:
          return kwargs[key]
      else:
          return default
  
file_path: vowpal_wabbit/python/tests/e2e_v2/assert_job.py
imports: import numpy
  import os
  from numpy.testing import assert_allclose, assert_almost_equal
  from vw_executor.vw import ExecutionStatus
  import vowpalwabbit
  from test_helper import get_function_object, datagen_driver
label_desc: Use image node_id 2 for calling a global function with example usage: get_from_kwargs(kwargs, key, default) and returns: kwargs, default