<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ecdsa_verify_raw(msg32, vrs, pub):
 """ Takes a message, the signature being verified and a pubkey Returns 1 if signature is valid with given pubkey """

    # assert len(vrs) == 3
    if len(vrs) == 3:
        return ecdsa_verify_compact(msg32, _encode_sig(*vrs), pub)
    else:
        return ecdsa_verify_compact(msg32, vrs, pub)