code: def test_create_function_called_by_py_runtime(self):
      if not tf2.enabled():
          self.skipTest("TF2 test")
  
      fndef = text_format.Parse(
          """
              signature {
                 name: 'NullaryFunction'
                 output_arg { name: 'o' type: DT_INT32 }
               }
               node_def {
                 name: 'retval'
                 op: 'Const'
                 attr {
                   key: 'dtype'
                   value { type: DT_INT32 }
                 }
                 attr {
                   key: 'value'
                   value {
                     tensor {
                       dtype: DT_INT32
                       tensor_shape {}
                       int_val: 1
                     }
                   }
                 }
               }
               ret { key: 'o' value: 'retval:output' }
           """,
          function_pb2.FunctionDef(),
      )
  
      ctx = runtime_client.GlobalPythonEagerContext()
      rt = runtime_client.Runtime(ctx)
      rt.CreateFunction(fndef)
  
      (ret,) = execute.execute(
          "NullaryFunction", 1, [], (), context.context()
      )
      self.assertAllEqual(ret, 1)
  
imports: from google.protobuf import text_format
  from tensorflow.core.framework import function_pb2
  from tensorflow.core.function.runtime_client import runtime_client
  from tensorflow.core.function.testing import test_pass
  from tensorflow.python import tf2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import execute
  from tensorflow.python.eager import remote
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the RuntimeClientTest obj's underlying member method code with example usage: obj.test_create_function_called_by_py_runtime() without return types