def METHOD_NAME(self):
    # bools should be valid, but converted to floats.
    pb = self.scalar("a", True)
    value = tensor_util.make_ndarray(pb.value[0].tensor).item()
    self.assertEqual(float, type(value))
    self.assertEqual(1.0, value)