class_docstr: Tests for recognizable export signatures from concrete functions.
class_docstr_tok: ["Tests","for","recognizable","export","signatures","from","concrete","functions","."]
code: def testVariadicInputSignature(self):
      @polymorphic_function.function(
          input_signature=(
              tensor_spec.TensorSpec(shape=None, dtype=dtypes.float32),
              tensor_spec.TensorSpec(
                  shape=None, dtype=dtypes.float32, name="y"
              ),
              tensor_spec.TensorSpec(shape=(), dtype=dtypes.float32),
              tensor_spec.TensorSpec(
                  shape=(), dtype=dtypes.float32, name="z"
              ),
          )
      )
      def variadic_fn(x, *args):
          return x + math_ops.add_n(list(args))
  
      # Call the function to make def_function happy
      variadic_fn(
          array_ops.ones([]),
          array_ops.ones([]),
          array_ops.ones([]),
          array_ops.ones([]),
      )
      variadic_op = variadic_fn.get_concrete_function()
      self.assertIn(b"variadic_fn", variadic_op.name)
      self.assertEqual(
          ["x", "y", "args_1", "z"],
          [inp.op.name for inp in variadic_op.inputs],
      )
      self.assertEqual(
          [b"x", b"y", b"args_1", b"z"],
          [
              inp.op.get_attr("_user_specified_name")
              for inp in variadic_op.inputs
          ],
      )
  
imports: from absl.testing import parameterized
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the ArgumentNamingTests obj's underlying member method code with example usage: obj.testVariadicInputSignature() and returns: unknown