code: def test_invalid_rank_value():
      x_np = np.random.rand(2, 3) * 255.0
      scale = np.random.rand() * 2.0 - 1.0
      if tf.executing_eagerly():
          with pytest.raises(
              (tf.errors.InvalidArgumentError, ValueError),
              match="input must be at least 3-D",
          ):
              _adjust_value_in_yiq_tf(x_np, scale)
      else:
          with pytest.raises(
              ValueError,
              match="Shape must be at least rank 3 but is rank 2",
          ):
              _adjust_value_in_yiq_tf(x_np, scale)
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.image import distort_image_ops
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 11 for calling a global function with example usage: test_invalid_rank_value() without return types