docstr: Run a couple of TensorFlow graphs against TOCO through the python bin.
docstr_tok: ["Run","a","couple","of","TensorFlow","graphs","against","TOCO","through","the","python","bin","."]
code: def test_toco(self):
      """Run a couple of TensorFlow graphs against TOCO through the python bin."""
      with tf.Session() as sess:
          img = tf.placeholder(
              name="img", dtype=tf.float32, shape=(1, 64, 64, 3)
          )
          val = (
              img
              + tf.constant([1.0, 2.0, 3.0])
              + tf.constant([1.0, 4.0, 4.0])
          )
          out = tf.identity(val, name="out")
          out2 = tf.sin(val, name="out2")
          # This is a valid model
          self._run(sess, img, out, True)
          # This uses an invalid function.
          # TODO(aselle): Check to make sure a warning is included.
          self._run(sess, img, out2, True)
          # This is an identity graph, which doesn't work
          self._run(sess, img, img, False)
  
file_path: tensorflow/tensorflow/lite/toco/python/toco_from_protos_test.py
imports: import os
  import tempfile
  import tensorflow.compat.v1
  from tensorflow.lite.toco import model_flags_pb2
  from tensorflow.lite.toco import toco_flags_pb2
  from tensorflow.lite.toco import types_pb2
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 2 for calling the TocoFromProtosTest obj's underlying member method code with example usage: obj.test_toco() without return types