original_docstring: 
      * Check that the signer is both the owner and custodian
      * Check that the record is not already final
      
docstring: Check that the signer is both the owner and custodian
  Check that the record is not already final
docstring_tokens: Check that the signer is both the owner and custodian Check that the record is not already final
code: def _finalize_record(payload, signer, timestamp, state):
      '''
      * Check that the signer is both the owner and custodian
      * Check that the record is not already final
      '''
      record_id = payload.record_id
  
      record, container, address = _get_record(state, record_id)
  
      if not _is_owner(record, signer) or not _is_custodian(record, signer):
          raise InvalidTransaction(
              'Must be owner and custodian to finalize record')
  
      if record.final:
          raise InvalidTransaction(
              'Record is already final')
  
      record.final = True
  
      _set_container(state, address, container)
code_tokens: def _finalize_record ( payload , signer , timestamp , state ) : record_id = payload . record_id record , container , address = _get_record ( state , record_id ) if not _is_owner ( record , signer ) or not _is_custodian ( record , signer ) : raise InvalidTransaction ( 'Must be owner and custodian to finalize record' ) if record . final : raise InvalidTransaction ( 'Record is already final' ) record . final = True _set_container ( state , address , container )
short_docstring: Check that the signer is both the owner and custodian
   Check that the record is not already final
short_docstring_tokens: Check that the signer is both the owner and custodian Check that the record is not already final
comment: '''
      * Check that the signer is both the owner and custodian
      * Check that the record is not already final
      '''