original_docstring: 
          Receives data from the Carmen sensor.
          The CRC16 is checked.
  
          :param size:
          :return: True on success, else false.
          :return: The received data.
          
docstring: Receives data from the Carmen sensor.
  The CRC16 is checked.
docstring_tokens: Receives data from the Carmen sensor . The CRC16 is checked .
code: def receive(self, size: int) -> Tuple[bool, List[int]]:
          """
          Receives data from the Carmen sensor.
          The CRC16 is checked.
  
          :param size:
          :return: True on success, else false.
          :return: The received data.
          """
          success, data = self._receive_raw(size)
          if success:
              # check crc
              success = calculate_crc16(data[:-2]) == (data[-2] + (data[-1] << 8))
              if not success:
                  logging.error('invalid crc')
          return success, data
code_tokens: def receive ( self , size : int ) -> Tuple [ bool , List [ int ] ] : success , data = self . _receive_raw ( size ) if success : success = calculate_crc16 ( data [ : - 2 ] ) == ( data [ - 2 ] + ( data [ - 1 ] << 8 ) ) if not success : logging . error ( 'invalid crc' ) return success , data
short_docstring: Receives data from the Carmen sensor.
short_docstring_tokens: Receives data from the Carmen sensor .
comment: """
          Receives data from the Carmen sensor.
          The CRC16 is checked.
  
          :param size:
          :return: True on success, else false.
          :return: The received data.
          """$SEP$# check crc