code: def _VarintEncoder():
      """Return an encoder for a basic varint value (does not include tag)."""
  
      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
  
imports: import struct
  import six
  from google.protobuf.internal import wire_format
label_desc: Use image node_id 13 for calling a global function with example usage: _VarintEncoder() and returns: EncodeVarint, write