code: def testDecompressShapeInference(self):
      with ops.Graph().as_default():
          for compression_type in ["ZLIB", "GZIP", ""]:
              with self.cached_session():
                  in_bytes = array_ops.placeholder(
                      dtypes.string, shape=[2]
                  )
                  decompressed = parsing_ops.decode_compressed(
                      in_bytes, compression_type=compression_type
                  )
                  self.assertEqual(
                      [2], decompressed.get_shape().as_list()
                  )
  
file_path: tensorflow/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 2 for calling the DecodeCompressedOpTest obj's underlying member method code with example usage: obj.testDecompressShapeInference() without return types