code: def testEstimatedProbabilityDensityMissingKey(self):
      input_size = 5
  
      with tf.compat.v1.Graph().as_default():
          input_data = tf.constant(
              [[str(x + 1)] for x in range(input_size)]
          )
  
          count = tf.constant([3] * input_size, tf.int64)
          boundaries = tf.as_string(tf.range(input_size))
          with mock.patch.object(
              mappers.analyzers,
              "histogram",
              side_effect=[(count, boundaries)],
          ):
              result = mappers.estimated_probability_density(
                  input_data, categorical=True
              )
  
          expected = np.array(
              [[0.2], [0.2], [0.2], [0.2], [0.0]], np.float32
          )
          with tf.compat.v1.Session() as sess:
              sess.run(tf.compat.v1.tables_initializer())
              self.assertAllEqual(expected, sess.run(result))
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 44 for calling the MappersTest obj's underlying member method code with example usage: obj.testEstimatedProbabilityDensityMissingKey() without return types