code: def test_passes_insufficient_rank_input_through_to_function(self):
      vectorized_vector_sum = vectorization_util.make_rank_polymorphic(
          lambda a, b: a + b, core_ndims=(1, 1)
      )
      c = vectorized_vector_sum(
          tf.convert_to_tensor(3.0),
          tf.convert_to_tensor([1.0, 2.0, 3.0]),
      )
      self.assertAllClose(c, [4.0, 5.0, 6.0])
  
      vectorized_matvec = vectorization_util.make_rank_polymorphic(
          tf.linalg.matvec, core_ndims=(2, 1)
      )
      with self.assertRaisesRegexp(
          ValueError, "Shape must be rank 2 but is rank 1"
      ):
          vectorized_matvec(tf.zeros([5]), tf.zeros([2, 1, 5]))
  
imports: import warnings
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import lognormal
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import poisson
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import vectorization_util
label_desc: Use image node_id 7 for calling the VectorizationTest obj's underlying member method code with example usage: obj.test_passes_insufficient_rank_input_through_to_function() without return types