code: def test_simple_cosh_multiple(self):
      @authoring.compatible
      @tf.function(
          input_signature=[
              tf.TensorSpec(shape=[None], dtype=tf.float32)
          ]
      )
      def f(x):
          return tf.cosh(x)
  
      f(tf.constant([1.0]))
      f(tf.constant([2.0]))
      f(tf.constant([3.0]))
      warning_messages = f.get_compatibility_log()
  
      # Test if compatiblility checks happens only once.
      # The number of warning_messages will be 2 by op location detail.
      self.assertEqual(2, len(warning_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 10 for calling the TFLiteAuthoringTest obj's underlying member method code with example usage: obj.test_simple_cosh_multiple() and returns: tf