pub fn verify_identity<F>(metric: F, x: &[u8], tolerance: f64) -> boolwhere F: Fn(&[u8], &[u8]) -> f64,
Verify that a distance function d(x,x) is close to 0 (allow for small overhead).