def crc_finalize(crc):
return crc & _MASK<EOL>
Finalizes CRC-32C checksum. Copied from
    https://github.com/TeamHG-Memex/tensorboard_logger/blob/master/tensorboard_logger/crc32c.py
    This function should be called as last step of crc calculation.

    Parameter
    ---------
      crc : int
          32-bit checksum to update as long.

    Returns
    -------
    int
        finalized 32-bit checksum as long