code: def testBuildOutputMap(self):
      with tf.compat.v1.Graph().as_default():
          x = tf.compat.v1.placeholder(tf.int32, [2])
          y = tf.compat.v1.sparse_placeholder(tf.string, [None])
          r = tf.compat.v1.ragged.placeholder(tf.float32, 1, ())
          sig = _make_signature({}, {"x": x, "y": y, "r": r})
  
          def _get_tensor(name):
              return (
                  tf.compat.v1.get_default_graph().get_tensor_by_name(
                      name
                  )
              )
  
          output_map = tensor_info.build_output_map(
              sig.outputs, _get_tensor
          )
          self.assertEqual(len(output_map), 3)
          self.assertIs(output_map["x"], x)
          self.assertIs(output_map["y"].indices, y.indices)
          self.assertIs(output_map["y"].values, y.values)
          self.assertIs(output_map["y"].dense_shape, y.dense_shape)
          self.assertIs(output_map["r"].values, r.values)
          self.assertIs(output_map["r"].row_splits, r.row_splits)
  
file_path: hub/tensorflow_hub/tensor_info_test.py
imports: import tensorflow
  from tensorflow_hub import tensor_info
label_desc: Use image node_id 5 for calling the TensorInfoTest obj's underlying member method code with example usage: obj.testBuildOutputMap() and returns: tf