code: def test_fail_on_non_utf8_token(self):
      value = constant_op.constant(value=[1, 2])
      token = b"\xb0"
      data_type = [dtypes.int32]
      with self.assertRaises(
          (errors.InternalError, UnicodeDecodeError)
      ):
          self.evaluate(
              gen_script_ops.py_func(
                  input=[value], token=token, Tout=data_type
              )
          )
  
imports: from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_script_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.ops.script_ops import numpy_function
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the PyFunctionTest obj's underlying member method code with example usage: obj.test_fail_on_non_utf8_token() without return types