code: def test_decorated_class_method_type(self):
      class Model(tf.Module):
          @authoring.compatible
          @tf.function(
              input_signature=[
                  tf.TensorSpec(shape=[None], dtype=tf.float32)
              ]
          )
          def eval(self, x):
              return tf.cos(x)
  
      m = Model()
      result = m.eval(tf.constant([0.0]))
      self.assertEqual(result, tf.constant([1.0]))
  
      # Check if the decorator keeps __name__ attribute.
      self.assertEqual(m.eval.__name__, "eval")
  
      # Check if the decorator works with get_concrete_function method.
      converter = tf.lite.TFLiteConverter.from_concrete_functions(
          [m.eval.get_concrete_function()], m
      )
      converter.convert()
  
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 9 for calling the TFLiteAuthoringTest obj's underlying member method code with example usage: obj.test_decorated_class_method_type() and returns: tf