code: def test_gpu_compatible(self):
      target_spec = tf.lite.TargetSpec()
      target_spec.supported_ops = [
          tf.lite.OpsSet.TFLITE_BUILTINS,
      ]
      target_spec.experimental_supported_backends = ["GPU"]
  
      @authoring.compatible(converter_target_spec=target_spec)
      @tf.function(
          input_signature=[
              tf.TensorSpec(shape=[4, 4], dtype=tf.float32)
          ]
      )
      def func(x):
          return tf.cos(x)
  
      func(tf.ones(shape=(4, 4), dtype=tf.float32))
      log_messages = func.get_compatibility_log()
      self.assertEmpty(log_messages)
  
file_path: tensorflow-upstream/tensorflow/lite/python/authoring/authoring_test.py
imports: import tensorflow
  from tensorflow.lite.python.authoring import authoring
label_desc: Use image node_id 15 for calling the TFLiteAuthoringTest obj's underlying member method code with example usage: obj.test_gpu_compatible() and returns: tf