code: def maybe_run_functions_eagerly(request):
      if request.param == "eager_mode":
          tf.config.run_functions_eagerly(True)
      elif request.param == "tf_function":
          tf.config.run_functions_eagerly(False)
  
      request.addfinalizer(finalizer)
  
imports: import os
  import random
  import inspect
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons import options
  from tensorflow_addons.utils import resource_loader
  from tensorflow_addons.utils.tf_test_utils import layer_test
label_desc: Use image node_id 4 for calling a global function with example usage: maybe_run_functions_eagerly(request) without return types