code: def run_with_mixed_precision_policy(request):
      tf.keras.mixed_precision.set_global_policy(request.param)
      yield
      tf.keras.mixed_precision.set_global_policy("float32")
  
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 7 for calling a global function with example usage: run_with_mixed_precision_policy(request) without return types