code: def test_class_method(self):
      class Model(tf.Module):
          @authoring.compatible
          @tf.function(
              input_signature=[
                  tf.TensorSpec(shape=[None], dtype=tf.float32)
              ]
          )
          def eval(self, x):
              return tf.cosh(x)
  
      m = Model()
      result = m.eval(tf.constant([0.0]))
      log_messages = m.eval.get_compatibility_log()
  
      self.assertEqual(result, tf.constant([1.0]))
      self.assertIn(
          "COMPATIBILITY WARNING: op 'tf.Cosh' require(s) \"Select TF Ops\" for "
          "model conversion for TensorFlow Lite. "
          "https://www.tensorflow.org/lite/guide/ops_select",
          log_messages,
      )
  
file_path: tensorflow/tensorflow/lite/python/authoring/authoring_test.py
imports: import tensorflow
  from tensorflow.lite.python.authoring import authoring
label_desc: Use image node_id 7 for calling the TFLiteAuthoringTest obj's underlying member method code with example usage: obj.test_class_method() and returns: tf