docstr: Verifies that default attributes are stripped from function node defs.
docstr_tok: ["Verifies","that","default","attributes","are","stripped","from","function","node","defs","."]
code: def testDefaultAttrStrippingNestedFunctions(self):
      """Verifies that default attributes are stripped from function node defs."""
      with self.cached_session():
  
          @function.Defun(dtypes.float32, dtypes.float32)
          def f0(i, j):
              return math_ops.complex(
                  i, j, name="double_nested_complex"
              )
  
          @function.Defun(dtypes.float32, dtypes.float32)
          def f1(i, j):
              return f0(i, j)
  
          _ = f1(constant_op.constant(1.0), constant_op.constant(2.0))
          meta_graph_def, _ = meta_graph.export_scoped_meta_graph(
              graph_def=ops.get_default_graph().as_graph_def(),
              strip_default_attrs=True,
          )
  
          double_nested_complex_node_def = None
          for function_def in meta_graph_def.graph_def.library.function:
              for node_def in function_def.node_def:
                  if node_def.name.startswith("double_nested_complex"):
                      double_nested_complex_node_def = node_def
                      break
              if double_nested_complex_node_def:
                  break
  
          self.assertIsNotNone(double_nested_complex_node_def)
          self.assertNotIn("T", double_nested_complex_node_def.attr)
          self.assertNotIn("Tout", double_nested_complex_node_def.attr)
          self.assertTrue(
              meta_graph_def.meta_info_def.stripped_default_attrs
          )
  
imports: import math
  import os.path
  import random
  import shutil
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.training import queue_runner_impl
label_desc: Use image node_id 6 for calling the SimpleMetaGraphTest obj's underlying member method code with example usage: obj.testDefaultAttrStrippingNestedFunctions() and returns: math_ops, f0