code: def test_raw_ops_setsize_invalid_shape(self):
      with self.assertRaisesRegex(
          errors_impl.InvalidArgumentError, "Shape must be a 1D tensor"
      ):
          invalid_shape = 1
          self.evaluate(
              gen_set_ops.set_size(
                  set_indices=1,
                  set_values=[1, 1],
                  set_shape=invalid_shape,
                  validate_indices=True,
                  name="",
              )
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_set_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sets
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 49 for calling the SetOpsTest obj's underlying member method code with example usage: obj.test_raw_ops_setsize_invalid_shape() without return types