code: def test_with_invalid_nbins(self):
      values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]
      with self.assertRaisesRegex(
          (errors.InvalidArgumentError, ValueError),
          "Shape must be rank 0 but is rank 1|should be a scalar",
      ):
          self.evaluate(
              histogram_ops.histogram_fixed_width(
                  values, [1.0, 5.0], nbins=[1, 2]
              )
          )
      with self.assertRaisesRegex(
          (errors.InvalidArgumentError, ValueError),
          "Requires nbins > 0|should be a positive number",
      ):
          self.evaluate(
              histogram_ops.histogram_fixed_width(
                  values, [1.0, 5.0], nbins=-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 3 for calling the HistogramFixedWidthTest obj's underlying member method code with example usage: obj.test_with_invalid_nbins() without return types