code: def crc_update(crc, data):
      """Updates CRC-32C checksum with data. Copied from
      https://github.com/TeamHG-Memex/tensorboard_logger/blob/master/tensorboard_logger/_crc32c.py
  
      Parameter
      ---------
        crc : int
            32-bit checksum to update as long.
        data : byte array
            string or iterable over bytes.
  
      Returns
      -------
      int
          32-bit updated CRC-32C as long.
      """
  
      if not isinstance(data, array.array) or data.itemsize != 1:
          buf = array.array("B", data)
      else:
          buf = data
  
      crc ^= _MASK
      for b in buf:  # pylint: disable=invalid-name
          table_index = (crc ^ b) & 0xFF
          crc = (CRC_TABLE[table_index] ^ (crc >> 8)) & _MASK
      return crc ^ _MASK
  
imports: from __future__ import absolute_import
  import array
label_desc: Use image node_id 1 for calling a global function with example usage: crc_update(crc, data) and returns: unknown