code: def bytes_to_long(bytesdata: bytes) -> int:
      
      assert len(bytesdata) == 8
      return sum((b << (k * 8) for k, b in enumerate(bytesdata)))
docs: Converts an 8-byte sequence to a long integer.
  
      Args:
          bytesdata: 8 consecutive bytes, as a ``bytes`` object, in
              little-endian format (least significant byte [LSB] first)
  
      Returns:
          integer