code: def testDecompressWithRaw(self):
      for compression_type in ["ZLIB", "GZIP", ""]:
          with self.cached_session():
  
              def decode(in_bytes, compression_type=compression_type):
                  decompressed = parsing_ops.decode_compressed(
                      in_bytes, compression_type
                  )
                  return parsing_ops.decode_raw(
                      decompressed, out_type=dtypes.int16
                  )
  
              result = self.evaluate(
                  decode([self._compress(b"AaBC", compression_type)])
              )
  
              self.assertAllEqual(
                  [
                      [
                          ord("A") + ord("a") * 256,
                          ord("B") + ord("C") * 256,
                      ]
                  ],
                  result,
              )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/image_ops/decode_compressed_op_test.py
imports: import gzip
  import io
  import zlib
  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 4 for calling the DecodeCompressedOpTest obj's underlying member method code with example usage: obj.testDecompressWithRaw() and returns: parsing_ops