<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def seq_seguid(seq, normalize=True):
 """returns seguid for sequence `seq` This seguid is compatible with BioPython's seguid. '2jmj7l5rSw0yVb/vlWAYkK/YBwk' 'IQiZThf2zKn/I1KtqStlEdsHYDQ' 'IQiZThf2zKn/I1KtqStlEdsHYDQ' 'lII0AoG1/I8qKY271rgv5CFZtsU' """

    seq = normalize_sequence(seq) if normalize else seq
    bseq = seq.encode("ascii")
    return base64.b64encode(hashlib.sha1(bseq).digest()).decode("ascii").rstrip(
        '=')