docstr: Test to make sure that when the same model is converted to MIL program,
  in the same session, it gives the same program, with the same op names
docstr_tok: ["Test","to","make","sure","that","when","the","same","model","is","converted","to","MIL","program",",","in","the","same","session",",","it","gives","the","same","program",",","with","the","same","op","names"]
code: def test_mil_op_names_consistency(tmpdir):
      """
      Test to make sure that when the same model is converted to MIL program,
      in the same session, it gives the same program, with the same op names
      """
      with tf.Graph().as_default() as graph:
          x = tf.placeholder(
              tf.float32, shape=(1, 5, 5, 3), name="input"
          )
          conv = tf.nn.conv2d(
              x,
              filter=tf.constant(
                  np.random.rand(1, 1, 3, 5), tf.float32
              ),
              padding="VALID",
          )
          y = tf.nn.relu(conv, name="output")
  
      mil_prog1 = ct.convert(graph, convert_to="milinternal")
      # convert the same model again
      mil_prog2 = ct.convert(graph, convert_to="milinternal")
  
      # compare op names of the two programs
      np.testing.assert_array_equal(
          get_op_types_in_program(mil_prog1),
          get_op_types_in_program(mil_prog2),
      )
  
imports: import itertools
  import os
  import tempfile
  import numpy
  import pytest
  import coremltools
  from coremltools._deps import _HAS_TF_1, _HAS_TF_2, MSG_TF1_NOT_FOUND
  from coremltools.converters.mil.testing_reqs import backends, compute_units
  from coremltools.converters.mil.testing_utils import assert_cast_ops_count, assert_input_dtype, assert_ops_in_mil_program, assert_output_dtype, assert_prog_input_type, assert_prog_output_type, assert_spec_input_image_type, assert_spec_output_image_type, get_op_types_in_program, verify_prediction
  from coremltools.proto import FeatureTypes_pb2
  from coremltools.test.api.test_api_examples import TestInputs
label_desc: Use image node_id 6 for calling the TestTensorFlow1ConverterExamples obj's underlying member method code with example usage: obj.test_mil_op_names_consistency(tmpdir) without return types