pub fn coordinates_to_range_ref( coordinates: &[i32], abs: bool, ) -> Result<String, String>
Converts a coordinate tuple back to a range reference.