code: def test_dense_roundtrip(self):
      export_path = os.path.join(tempfile.mkdtemp(), "export")
  
      with tf.compat.v1.Graph().as_default():
          with tf.compat.v1.Session().as_default() as session:
              input_float = tf.compat.v1.placeholder(tf.float32)
              # show that unrelated & unmapped placeholders do not interfere
              tf.compat.v1.placeholder(tf.int64)
              output = input_float / 5.0
              inputs = {"input": input_float}
              outputs = {"output": output}
              saved_transform_io.write_saved_transform_from_session(
                  session, inputs, outputs, export_path
              )
  
      with tf.compat.v1.Graph().as_default():
          with tf.compat.v1.Session().as_default() as session:
              # Using a computed input gives confidence that the graphs are fused.
              input_float = tf.constant(25.0) * 2
              inputs = {"input": input_float}
              (
                  _,
                  outputs,
              ) = saved_transform_io.partially_apply_saved_transform_internal(
                  export_path, inputs
              )
              result = session.run(outputs["output"])
              # (25 * 2) / 5 = 10
              self.assertEqual(10.0, result)
  
imports: import os
  import tempfile
  import numpy
  import tensorflow
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import lookup_ops
label_desc: Use image node_id 8 for calling the SavedTransformIOTest obj's underlying member method code with example usage: obj.test_dense_roundtrip() without return types