class_docstr: Tests for recognizable export signatures from concrete functions.
class_docstr_tok: ["Tests","for","recognizable","export","signatures","from","concrete","functions","."]
code: def testVariadic(self):
      @polymorphic_function.function
      def variadic_fn(x, *args, **kwargs):
          return x + math_ops.add_n(list(args) + list(kwargs.values()))
  
      # Call the function to make def_function happy
      variadic_fn(array_ops.ones([]), array_ops.ones([]))
      variadic_op = variadic_fn.get_concrete_function(
          tensor_spec.TensorSpec(shape=(), 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="second_variadic"
          ),
          z=tensor_spec.TensorSpec(shape=(), dtype=dtypes.float32),
          zz=tensor_spec.TensorSpec(
              shape=(), dtype=dtypes.float32, name="cust"
          ),
      )
      self.assertEqual(
          ["x", "y", "args_1", "second_variadic", "z", "cust"],
          [inp.op.name for inp in variadic_op.inputs],
      )
      self.assertEqual(
          [b"x", b"y", b"args_1", b"second_variadic", b"z", b"cust"],
          [
              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 6 for calling the ArgumentNamingTests obj's underlying member method code with example usage: obj.testVariadic() and returns: unknown