code: def testInvalidPattern(self, op):
      values = ["abc", "1"]
      with self.cached_session():
          input_tensor = constant_op.constant(values, dtypes.string)
          invalid_pattern = "A["
          matched = op(input_tensor, invalid_pattern)
          with self.assertRaisesOpError("Invalid pattern"):
              self.evaluate(matched)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/strings_ops/regex_full_match_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_string_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the RegexFullMatchOpVariantsTest obj's underlying member method code with example usage: obj.testInvalidPattern(op) without return types