code: def _SignedVarintSize(value):
      """Compute the size of a signed varint value."""
      if value < 0:
          return 10
      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
  import six
  from google.protobuf.internal import wire_format
label_desc: Use image node_id 2 for calling a global function with example usage: _SignedVarintSize(value) and returns: int, int, int, int, int, int, int, int, int, int, int