code: def pytest_generate_tests(metafunc):
      marker = metafunc.definition.get_closest_marker("with_device")
      if marker is None:
          # tests which don't have the "with_device" mark are executed on CPU
          # to ensure reproducibility. We can't let TensorFlow decide
          # where to place the ops.
          devices = ["cpu"]
      else:
          devices = marker.args[0]
  
      parameters = [
          pytest.param(x, marks=get_marks(x)) for x in devices
      ]
      metafunc.parametrize("device", parameters, indirect=True)
  
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 16 for calling a global function with example usage: pytest_generate_tests(metafunc) without return types