code: def test_invalid_inputs(self):
      inputs = constant_op.constant(
          np.int8(0), shape=[3, 3, 3, 3], dtype=dtypes.qint8
      )
      bias = constant_op.constant(
          np.int8(0), shape=[3], dtype=dtypes.qint8
      )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              nn_ops.quantized_bias_add(
                  input=inputs,
                  bias=bias,
                  min_input=[],
                  max_input=1.0,
                  min_bias=0.0,
                  max_bias=1.0,
                  out_type=dtypes.qint32,
              )
          )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              nn_ops.quantized_bias_add(
                  input=inputs,
                  bias=bias,
                  min_input=0.0,
                  max_input=[],
                  min_bias=0.0,
                  max_bias=1.0,
                  out_type=dtypes.qint32,
              )
          )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              nn_ops.quantized_bias_add(
                  input=inputs,
                  bias=bias,
                  min_input=0.0,
                  max_input=1.0,
                  min_bias=[],
                  max_bias=1.0,
                  out_type=dtypes.qint32,
              )
          )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              nn_ops.quantized_bias_add(
                  input=inputs,
                  bias=bias,
                  min_input=0.0,
                  max_input=1.0,
                  min_bias=0.0,
                  max_bias=[],
                  out_type=dtypes.qint32,
              )
          )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the QuantizedBiasedAddTest obj's underlying member method code with example usage: obj.test_invalid_inputs() without return types