code: def _VarintEncoder():
    
  
    def EncodeVarint(write, value):
      bits = value & 0x7f
      value >>= 7
      while value:
        write(six.int2byte(0x80|bits))
        bits = value & 0x7f
        value >>= 7
      return write(six.int2byte(bits))
  
    return EncodeVarint
docs: Return an encoder for a basic varint value (does not include tag).