class_docstr: Test the hint to stub functionality.
class_docstr_tok: ["Test","the","hint","to","stub","functionality","."]
docstr: Test if all hinted output nodes are correctly found.
code: def testFindHintedOutputNodes(self):
      """Test if all hinted output nodes are correctly found."""
      with ops.Graph().as_default():
  
          def _build_ophinted_op(name, input1, input2):
              custom_op = op_hint.OpHint(name)
              input1 = custom_op.add_input(input1)
              input2 = custom_op.add_input(input2)
              output = math_ops.mul(input1, input2)
              return custom_op.add_output(output)
  
          output_1 = _build_ophinted_op(
              "custom_op_1",
              array_ops.constant([1.0]),
              array_ops.constant([2.0]),
          )
          output_2 = _build_ophinted_op(
              "custom_op_2",
              array_ops.constant([3.0]),
              array_ops.constant([4.0]),
          )
          with self.cached_session() as sess:
              hinted_outputs_nodes = (
                  op_hint.find_all_hinted_output_nodes(sess)
              )
              expected_hinted_output_nodes = [
                  _node_name(output_1.name),
                  _node_name(output_2.name),
              ]
              self.assertEqual(
                  len(hinted_outputs_nodes),
                  len(expected_hinted_output_nodes),
              )
  
imports: from unittest import mock
  import numpy
  from tensorflow.lite.python import convert
  from tensorflow.lite.python import op_hint
  from tensorflow.lite.python.interpreter import Interpreter
  from tensorflow.lite.python.metrics import converter_error_data_pb2
  from tensorflow.lite.python.metrics.wrapper import metrics_wrapper
  from tensorflow.lite.toco import toco_flags_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.graph_util_impl import _bfs_for_reachable_nodes
  from tensorflow.python.framework.graph_util_impl import _extract_graph_summary
  from tensorflow.python.framework.graph_util_impl import _node_name
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 12 for calling the ConvertTestOpHint obj's underlying member method code with example usage: obj.testFindHintedOutputNodes() and returns: custom_op