code: def _run(self, x, pattern=None):
      try:
          import re2
      except ImportError as e:
          raise ImportError(
              "re2 must be installed to use the reference implementation of the RegexFullMatch operator"
          ) from e
  
          # As per onnx/mapping.py, object numpy dtype corresponds to TensorProto.STRING
      if x.dtype.kind not in _acceptable_str_dtypes:
          raise TypeError(
              f"Input must be string tensor, received dtype {x.dtype}"
          )
      try:
          regex = re2.compile(pattern)
      except re2.error as e:
          raise ValueError(f"Invalid regex pattern {pattern!r}") from e
  
      fullmatch_func = np.vectorize(
          lambda x: regex.fullmatch(x) is not None, otypes=[np.bool_]
      )
      return (fullmatch_func(x),)
  
imports: import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 for calling the RegexFullMatch obj's underlying member method code with example usage: obj._run(x, pattern) and returns: fullmatch_func