def calc_im_size(img_height, img_width):
height, width = img_height, img_width<EOL>for _ in range(<NUM_LIT:5>):<EOL><INDENT>height, width = _get_deconv_outsize((height, width),<EOL><NUM_LIT:4>, <NUM_LIT:2>, <NUM_LIT:1>)<EOL><DEDENT>return height, width<EOL>
Calculates shape of data after decoding.

    Parameters
    ----------
    img_height : int
        Height of encoded data.
    img_width : int
        Width of encoded data.

    Returns
    -------
    encoded_shape : tuple(int)
        Gives back 2-tuple with decoded image dimensions.