code: def _VarintSize(value):
      """Compute the size of a varint value."""
      if value <= 0x7F:
          return 1
      if value <= 0x3FFF:
          return 2
      if value <= 0x1FFFFF:
          return 3
      if value <= 0xFFFFFFF:
          return 4
      if value <= 0x7FFFFFFFF:
          return 5
      if value <= 0x3FFFFFFFFFF:
          return 6
      if value <= 0x1FFFFFFFFFFFF:
          return 7
      if value <= 0xFFFFFFFFFFFFFF:
          return 8
      if value <= 0x7FFFFFFFFFFFFFFF:
          return 9
      return 10
  
imports: import struct
  from google.protobuf.internal import wire_format
label_desc: Use image node_id 1 for calling a global function with example usage: _VarintSize(value) and returns: int, int, int, int, int, int, int, int, int, int