code: def test_invalid_inputs(self):
      inputs = constant_op.constant(
          np.uint8(0), shape=[3, 3, 3, 3], dtype=dtypes.quint8
      )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              array_ops.quantized_instance_norm(
                  x=inputs, x_min=0.0, x_max=[[1.0], [2.0], [4.0]]
              )
          )
  
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 0"
      ):
          self.evaluate(
              array_ops.quantized_instance_norm(
                  x=inputs, x_min=[[1.0], [2.0], [4.0]], x_max=1.0
              )
          )
  
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 QuantizedInstanceNormOpTest obj's underlying member method code with example usage: obj.test_invalid_inputs() without return types