code: def test_shape_inference(self):
      value_range = [0.0, 5.0]
      values = [[-1.0, 0.0, 1.5], [2.0, 5.0, 15]]
      expected_bin_counts = [2, 1, 1, 0, 2]
      placeholder = array_ops.placeholder(dtypes.int32)
      with self.session():
          hist = histogram_ops.histogram_fixed_width(
              values, value_range, nbins=5
          )
          self.assertAllEqual(hist.shape.as_list(), (5,))
          self.assertEqual(dtypes.int32, hist.dtype)
          self.assertAllClose(expected_bin_counts, self.evaluate(hist))
  
          hist = histogram_ops.histogram_fixed_width(
              values, value_range, nbins=placeholder
          )
          self.assertEqual(hist.shape.ndims, 1)
          self.assertIs(hist.shape.dims[0].value, None)
          self.assertEqual(dtypes.int32, hist.dtype)
          self.assertAllClose(
              expected_bin_counts, hist.eval({placeholder: 5})
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import histogram_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the HistogramFixedWidthTest obj's underlying member method code with example usage: obj.test_shape_inference() without return types