class_docstr: Main model class.
class_docstr_tok: ["Main","model","class","."]
docstr: Decompresses an image.
docstr_tok: ["Decompresses","an","image","."]
code: def decompress(self, string, x_shape, y_shape):
      """Decompresses an image."""
      y_hat = self.entropy_model.decompress(string, y_shape)
      x_hat = self.synthesis_transform(y_hat)
      # Remove batch dimension, and crop away any extraneous padding.
      x_hat = x_hat[0, : x_shape[0], : x_shape[1], :]
      # Then cast back to 8-bit integer.
      return tf.saturate_cast(tf.round(x_hat), tf.uint8)
  
imports: import argparse
  import glob
  import sys
  from absl import app
  from absl.flags import argparse_flags
  import tensorflow
  import tensorflow_compression
  import tensorflow_datasets
label_desc: Use image node_id 9 for calling the BLS2017Model obj's underlying member method code with example usage: obj.decompress(string, x_shape, y_shape) and returns: tf