code: def test_add_one():
      class AddOne(tf.Module):
          """simple function to test x=x+1; scalar as input"""
  
          def get_input(self):
              return np.array(1.0, dtype="float32")
  
          @tf.function(
              input_signature=[
                  tf.TensorSpec(shape=(), dtype=tf.float32)
              ]
          )
          def func(self, x):
              return x + 1
  
      run_all(AddOne)
  
imports: import tempfile
  import tensorflow
  import numpy
  import pytest
  from common import compare_tf_tvm
  from common import run_tf_code
label_desc: Use image node_id 6 for calling a global function with example usage: test_add_one() and returns: np, unknown