docstr: Verifies that nodes with un-registered ops are not stripped.
docstr_tok: ["Verifies","that","nodes","with","un-registered","ops","are","not","stripped","."]
code: def testDefaultAttrStrippingUnregisteredOps(self):
      """Verifies that nodes with un-registered ops are not stripped."""
      graph_def = graph_pb2.GraphDef()
      node = graph_def.node.add()
      node.name = "node_with_unreg_op"
      node.op = "unreg_op"
      node.attr["attr_1"].i = 1
  
      meta_info_def = meta_graph_pb2.MetaGraphDef.MetaInfoDef()
      meta_info_def.stripped_op_list.op.add()
  
      with self.cached_session():
          meta_graph_def = meta_graph.create_meta_graph_def(
              meta_info_def=meta_info_def,
              graph_def=graph_def,
              strip_default_attrs=True,
          )
          node_def = test_util.get_node_def_from_graph(
              "node_with_unreg_op", meta_graph_def.graph_def
          )
          self.assertEqual(node_def.attr["attr_1"].i, 1)
          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 7 for calling the SimpleMetaGraphTest obj's underlying member method code with example usage: obj.testDefaultAttrStrippingUnregisteredOps() without return types