pub fn shard_image_to_bytes( shard_image: HashMap<String, HashSet<PeerId>>, ) -> Result<Vec<u8>, Error>
Marshall the shard network image into a ByteVector.