code: def testFuseResizeAndConv(self):
      with self.cached_session() as sess:
          inputs = [1, 4, 2, 5, 3, 6, -1, -4, -2, -5, -3, -6]
          input_op = constant_op.constant(
              np.array(inputs), shape=[1, 2, 3, 2], dtype=dtypes.float32
          )
          resize_op = image_ops.resize_bilinear(
              input_op, [12, 4], align_corners=False
          )
          weights = [1, 2, 3, 4, 0.1, 0.2, 0.3, 0.4]
          weights_op = constant_op.constant(
              np.array(weights),
              shape=[1, 2, 2, 2],
              dtype=dtypes.float32,
          )
          nn_ops.conv2d(
              resize_op,
              weights_op,
              [1, 1, 1, 1],
              padding="VALID",
              name="output",
          )
          original_graph_def = sess.graph_def
          original_result = sess.run(["output:0"])
      optimized_graph_def = (
          optimize_for_inference_lib.fuse_resize_and_conv(
              original_graph_def, ["output"]
          )
      )
  
      with self.cached_session() as sess:
          _ = importer.import_graph_def(
              optimized_graph_def, input_map={}, name="optimized"
          )
          optimized_result = sess.run(["optimized/output:0"])
  
      self.assertAllClose(original_result, optimized_result)
  
      for node in optimized_graph_def.node:
          self.assertNotEqual("Conv2D", node.op)
          self.assertNotEqual("MirrorPad", node.op)
  
imports: import numpy
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
  from tensorflow.python.tools import optimize_for_inference_lib
label_desc: Use image node_id 14 for calling the OptimizeForInferenceTest obj's underlying member method code with example usage: obj.testFuseResizeAndConv() without return types