code: def testToUint8(self):
      self.assertAllEqual(
          [[ord("A")], [ord("a")]],
          parsing_ops.decode_raw(["A", "a"], dtypes.uint8),
      )
  
      self.assertAllEqual(
          [
              [ord("w"), ord("e"), ord("r")],
              [ord("X"), ord("Y"), ord("Z")],
          ],
          parsing_ops.decode_raw(["wer", "XYZ"], dtypes.uint8),
      )
  
      with self.assertRaisesOpError(
          "DecodeRaw requires input strings to all be the same size, but "
          "element 1 has size 5 != 6"
      ):
          self.evaluate(
              parsing_ops.decode_raw(["short", "longer"], dtypes.uint8)
          )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/image_ops/decode_raw_op_test.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the DecodeRawOpTest obj's underlying member method code with example usage: obj.testToUint8() without return types