class_docstr: Test the hint to stub functionality.
class_docstr_tok: ["Test","the","hint","to","stub","functionality","."]
code: def testOverrideIndex(self):
      with ops.Graph().as_default():
          a = array_ops.constant([1.0])
          b = array_ops.constant([2.0])
          c = array_ops.constant([3.0])
          custom = op_hint.OpHint("test_override")
          b = custom.add_input(b)  # should auto assign 0
          a = custom.add_input(a, index_override=1)
          c = custom.add_input(c)  # should auto assign 2
          with self.cached_session():
              self.assertEqual(self._get_input_index(a), 1)
              self.assertEqual(self._get_input_index(b), 0)
              self.assertEqual(self._get_input_index(c), 2)
  
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 10 for calling the ConvertTestOpHint obj's underlying member method code with example usage: obj.testOverrideIndex() without return types