code: def _varint(i):
      a = array("B")
      while (i & ~0x7F) != 0:
          a.append((i & 0x7F) | 0x80)
          i = i >> 7
      a.append(i)
      return array_tobytes(a)
  
file_path: whoosh/src/whoosh/util/varints.py
imports: from array import array
  from whoosh.compat import array_tobytes, xrange
label_desc: Use image node_id 1 for calling a global function with example usage: _varint(i) and returns: array_tobytes