human
I wrote the below code

    local_chr = chr
    def EncodeSignedVarint(write, value):
        if (value < 0):
            value += (1 << 64)
        bits = (value & 127)
        value >>= 7
        while value:
            write(local_chr((128 | bits)))
            bits = (value & 127)
            value >>= 7
        return write(local_chr(bits))
    return EncodeSignedVarint

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def _SignedVarintEncoder():