code: def _VarintEncoder():
      """Return an encoder for a basic varint value (does not include tag)."""
  
      local_int2byte = six.int2byte
  
      def EncodeVarint(write, value, unused_deterministic=None):
          bits = value & 0x7F
          value >>= 7
          while value:
              write(local_int2byte(0x80 | bits))
              bits = value & 0x7F
              value >>= 7
          return write(local_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