code: def testBuildInputMap(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}, {})
  
          input_map = tensor_info.build_input_map(
              sig.inputs, {"x": x, "y": y, "r": r}
          )
          self.assertEqual(len(input_map), 6)
          self.assertIs(input_map[x.name], x)
          self.assertIs(input_map[y.indices.name], y.indices)
          self.assertIs(input_map[y.values.name], y.values)
          self.assertIs(input_map[y.dense_shape.name], y.dense_shape)
          self.assertIs(input_map[r.values.name], r.values)
          self.assertIs(input_map[r.row_splits.name], 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 4 for calling the TensorInfoTest obj's underlying member method code with example usage: obj.testBuildInputMap() without return types