code: def testRegexReplaceDelegation(self, pattern_fn, rewrite_fn):
      with self.cached_session():
          input_vector = constant_op.constant("foo", dtypes.string)
          pattern = pattern_fn("[a-z]")
          replace = rewrite_fn(".")
          op = string_ops.regex_replace(input_vector, pattern, replace)
          self.assertTrue(op.name.startswith("RegexReplace"))
  
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 1 for calling the RegexReplaceTest obj's underlying member method code with example usage: obj.testRegexReplaceDelegation(pattern_fn, rewrite_fn) without return types