code: def testAttributesForArgDef(self):
      @def_function.function
      def fn(x):
          return x
  
      inp = constant_op.constant(1.0)
      fdef = fn.get_concrete_function(inp).function_def
      fdef.arg_attr[0].attr["_test_attr"].s = "value".encode("ascii")
      graph_def = function_def_to_graph.function_def_to_graph_def(fdef)
      placeholders = [
          ndef for ndef in graph_def[0].node if ndef.op == "Placeholder"
      ]
      self.assertEqual(1, len(placeholders))
      self.assertEqual(
          placeholders[0].attr["_test_attr"].s, "value".encode("ascii")
      )
  
imports: from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function_def_to_graph
  from tensorflow.python.framework import graph_to_function_def
  from tensorflow.python.framework import op_def_library
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_ops
  from tensorflow.python.framework import test_util
  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 5 for calling the FunctionDefToGraphDefTest obj's underlying member method code with example usage: obj.testAttributesForArgDef() and returns: x