<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _VarintBytes(value):
 """Encode the given integer as a varint and return the bytes. This is only called at startup time so it doesn't need to be fast."""


  pieces = []
  _EncodeVarint(pieces.append, value)
  return b"".join(pieces)