code: def _SkipVarint(buffer, pos, end):
      """Skip a varint value.  Returns the new position."""
      # Previously ord(buffer[pos]) raised IndexError when pos is out of range.
      # With this code, ord(b'') raises TypeError.  Both are handled in
      # python_message.py to generate a 'Truncated message' error.
      while ord(buffer[pos : pos + 1]) & 0x80:
          pos += 1
      pos += 1
      if pos > end:
          raise _DecodeError("Truncated message.")
      return pos
  
imports: import struct
  import six
  from google.protobuf.internal import encoder
  from google.protobuf.internal import wire_format
  from google.protobuf import message
label_desc: Use image node_id 16 for calling a global function with example usage: _SkipVarint(buffer, pos, end) and returns: pos